| | |
| | | * 司机超时推送 |
| | | * @param type |
| | | * @param uid |
| | | * @param orderId |
| | | * @param orderType |
| | | * @param describe |
| | | * @param timeOutType 超时类型(1=用户可免费取消提醒,2=预约单接单提醒,3=超时循环提醒) |
| | | * @param orderId 订单id |
| | | * @param orderType 订单类型(1=打车,4=包裹) |
| | | * @param describe 展示内容 |
| | | * @param audioUrl 语音播报音频地址 |
| | | */ |
| | | public void pushOrderTimeOut(Integer type, Integer uid, Integer orderId, Integer orderType, String describe){ |
| | | public void pushOrderTimeOut(Integer type, Integer uid, Integer timeOutType, Integer orderId, Integer orderType, String describe, String audioUrl){ |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("code", 200); |
| | | jsonObject.put("msg", "SUCCESS"); |
| | | jsonObject.put("method", "ORDER_TIME_OUT"); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("timeOutType", timeOutType); |
| | | map.put("orderId", orderId); |
| | | map.put("orderType", orderType); |
| | | map.put("describe", describe); |
| | | map.put("audioUrl", audioUrl); |
| | | jsonObject.put("data", map); |
| | | |
| | | //调用推送 |