推送消息

This commit is contained in:
Jack 2025-11-01 14:39:19 +08:00
parent 60c4df7625
commit 6acf94acb5
2 changed files with 6 additions and 5 deletions

View File

@ -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);

View File

@ -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);