推送消息
This commit is contained in:
parent
60c4df7625
commit
6acf94acb5
@ -187,12 +187,13 @@ public class OrderPayedListener {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 同城配送或普通快递,都发送 unipush 推送:您有一个新的订单,请查收!
|
||||
// 同城配送或普通快递,都发送 unipush 推送:您有一个新的[同城][预约]订单,请及时拣货配送[请及时查看预约订单]。
|
||||
String bookingTip = isBookingOrder ? "预约" : "";
|
||||
String bookingTiP2 = isBookingOrder ? "请及时查看预约订单。" : "请及时拣货配送。";
|
||||
|
||||
String orderType = orderInfoOld.getDelivery_type_id() == StateCode.DELIVERY_TYPE_SAME_CITY ? "同城" + bookingTip : bookingTip;
|
||||
String title = String.format("您有一笔新的%s订单,请注意查收。", orderType);
|
||||
String content = String.format("这笔新的%s订单:%s,用户于%s下的单,请注意查收。", orderType, orderId, DateTimeUtils.formatDateTime(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss"));
|
||||
String title = String.format("您有一笔新的%s订单,%s", orderType, bookingTiP2);
|
||||
String content = String.format("这笔新的%s订单:%s,用户于%s下的单,%s", orderType, orderId, DateTimeUtils.formatDateTime(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss"), bookingTiP2);
|
||||
JSONObject payload = new JSONObject();
|
||||
payload.put("category", CommonConstant.PUSH_MSG_CATE_MCH_ONLINE_ORDER_LIST);
|
||||
payload.put("orderId", orderId);
|
||||
|
||||
@ -991,8 +991,8 @@ public class ShopOrderInfoServiceImpl extends BaseServiceImpl<ShopOrderInfoMappe
|
||||
shopOrderBookingService.updateOrderBookingFinishState(orderId);
|
||||
|
||||
// 发送推送消息给商家
|
||||
String title = "您有一笔新的订单,请注意查收。";
|
||||
String content = String.format("这笔新的订单:%s,用户于%s下的单,请注意查收。",
|
||||
String title = "您有一笔新的订单,请及时拣货配送。";
|
||||
String content = String.format("这笔新的订单:%s,用户于%s下的单,请及时拣货配送。",
|
||||
orderId, DateTimeUtils.formatDateTime(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss"));
|
||||
JSONObject payload = new JSONObject();
|
||||
payload.set("category", CommonConstant.PUSH_MSG_CATE_MCH_ONLINE_ORDER_LIST);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user