|
@@ -350,7 +350,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
String openId = R.getDataIfSuccess(szwlFeign.getOpenId(admin.getId()));
|
|
|
// 获取openId
|
|
|
if (StringUtils.isNotEmpty(openId)) {
|
|
|
- this.WechatRefundMessage(openId, equipment, order, companyType, reason);
|
|
|
+ this.WechatRefundMessage(openId, equipment, order, companyType, reason, customerPhone);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -1276,7 +1276,7 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void WechatRefundMessage(String openId, TEquipment equipment, TOrder order, String companyType, String reason) {
|
|
|
+ public void WechatRefundMessage(String openId, TEquipment equipment, TOrder order, String companyType, String reason, String customerPhone) {
|
|
|
String accessToken = "";
|
|
|
try {
|
|
|
if(StringUtils.isEmpty(companyType) || companyType.equals("0")) {
|
|
@@ -1293,22 +1293,23 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
// 模版参数
|
|
|
if(StringUtils.isNotEmpty(equipment.getName())) {
|
|
|
if(equipment.getName().length() > 20) {
|
|
|
- sendMag.put("thing11", new WeChatTemplateMsg(equipment.getName().substring(0, 15) + "..."));
|
|
|
+ sendMag.put("thing2", new WeChatTemplateMsg(equipment.getName().substring(0, 15) + "..."));
|
|
|
} else {
|
|
|
- sendMag.put("thing11", new WeChatTemplateMsg(equipment.getName()));
|
|
|
+ sendMag.put("thing2", new WeChatTemplateMsg(equipment.getName()));
|
|
|
}
|
|
|
} else {
|
|
|
- sendMag.put("thing11", new WeChatTemplateMsg(clientId.substring(clientId.length() - 6)));
|
|
|
+ sendMag.put("thing2", new WeChatTemplateMsg(clientId.substring(clientId.length() - 6)));
|
|
|
}
|
|
|
|
|
|
String sn = order.getSn();
|
|
|
if (sn.length() > 32) {
|
|
|
- sendMag.put("character_string8", new WeChatTemplateMsg(sn.substring(0, 28) + "..."));
|
|
|
+ sendMag.put("character_string1", new WeChatTemplateMsg(sn.substring(0, 28) + "..."));
|
|
|
} else {
|
|
|
- sendMag.put("character_string8", new WeChatTemplateMsg(sn));
|
|
|
+ sendMag.put("character_string1", new WeChatTemplateMsg(sn));
|
|
|
}
|
|
|
- sendMag.put("character_string10", new WeChatTemplateMsg(clientId.substring(clientId.length() - 6)));
|
|
|
- sendMag.put("const5", new WeChatTemplateMsg(reason));
|
|
|
+ sendMag.put("const3", new WeChatTemplateMsg(reason));
|
|
|
+ sendMag.put("phone_number5", new WeChatTemplateMsg(customerPhone));
|
|
|
+ sendMag.put("const4", new WeChatTemplateMsg("24小时内完成退款"));
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
Map<String, Object> sendBody = new HashMap<>();
|
|
|
sendBody.put("touser", openId);
|