|
|
@@ -233,14 +233,14 @@ public class OrderService {
|
|
|
if (order.getChannel() != DistributionChannel.AGENCY) {
|
|
|
userRepo.findById(order.getUserId()).ifPresent(user -> {
|
|
|
WxMaSubscribeMessage msg = new WxMaSubscribeMessage();
|
|
|
- msg.setTemplateId("dBUqrdNzCAWwKveOgkmPRZlktQv7ZBk7UWfNtnlJoV4");
|
|
|
+ msg.setTemplateId("j2VMcELoayJSk-nfC13JgyGdba4DsaoLVenQ-6l47K8");
|
|
|
msg.setToUser(user.getOpenId());
|
|
|
msg.setPage("/pages/home");
|
|
|
- msg.addData(new WxMaSubscribeMessage.Data("date1", DateTimeUtils
|
|
|
+ msg.addData(new WxMaSubscribeMessage.Data("time1", DateTimeUtils
|
|
|
.format(order.getStartTime(), DateTimeUtils.DATE_TIME_FORMAT)));
|
|
|
msg.addData(new WxMaSubscribeMessage.Data("thing2", "MR眼镜" + order.getDeviceNum() + "台"));
|
|
|
msg.addData(new WxMaSubscribeMessage.Data("thing3", order.getMaxUseTime() + "分钟"));
|
|
|
- msg.addData(new WxMaSubscribeMessage.Data("thing5", "请注意及时归还设备"));
|
|
|
+ msg.addData(new WxMaSubscribeMessage.Data("thing4", "请注意及时归还设备"));
|
|
|
try {
|
|
|
wxMaService.getMsgService().sendSubscribeMsg(msg);
|
|
|
} catch (WxErrorException e) {
|