| | |
| | | |
| | | public void notifyOrderCancelled(TourOrder order) { |
| | | if (order == null || order.getGuideId() == null) return; |
| | | create(order.getGuideId(), "ORDER_CANCELLED", "取消提醒", "您有一个讲解订单被取消,请查看", |
| | | order.getId(), orderTargetUrl(order.getId())); |
| | | String title = "取消提醒"; |
| | | String content = "您有一个讲解订单被取消,请查看"; |
| | | String targetUrl = orderTargetUrl(order.getId()); |
| | | create(order.getGuideId(), "ORDER_CANCELLED", title, content, order.getId(), targetUrl); |
| | | pushDeviceService.push(order.getGuideId(), title, content, targetUrl); |
| | | } |
| | | |
| | | public void notifyOrderReviewed(TourOrder order) { |
| | | if (order == null || order.getGuideId() == null) return; |
| | | String title = "评价提醒"; |
| | | String content = "您有一条新的订单评价,请查看"; |
| | | String targetUrl = orderTargetUrl(order.getId()); |
| | | String targetUrl = "/pages/rating/index"; |
| | | create(order.getGuideId(), "ORDER_REVIEWED", title, content, order.getId(), targetUrl); |
| | | pushDeviceService.push(order.getGuideId(), title, content, targetUrl); |
| | | } |