|
@@ -5,6 +5,7 @@ import cn.binarywang.wx.miniapp.api.WxMaService;
|
|
import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage;
|
|
import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.fs.core.config.WxMaConfiguration;
|
|
import com.fs.core.config.WxMaConfiguration;
|
|
|
|
+import com.fs.his.config.WxMiniappTempConfig;
|
|
import com.fs.his.domain.FsUser;
|
|
import com.fs.his.domain.FsUser;
|
|
import com.fs.his.service.IFsUserService;
|
|
import com.fs.his.service.IFsUserService;
|
|
import com.fs.his.utils.ConfigUtil;
|
|
import com.fs.his.utils.ConfigUtil;
|
|
@@ -30,6 +31,9 @@ public class WeixinTemplateService {
|
|
@Autowired
|
|
@Autowired
|
|
private IFsUserService userService;
|
|
private IFsUserService userService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ WxMiniappTempConfig wxMiniappTempConfig;
|
|
|
|
+
|
|
|
|
|
|
public void cancelOrderNotice(String orderId,String title,String remark,Long uid){
|
|
public void cancelOrderNotice(String orderId,String title,String remark,Long uid){
|
|
String openId = this.getUserOpenid(uid);
|
|
String openId = this.getUserOpenid(uid);
|
|
@@ -40,7 +44,7 @@ public class WeixinTemplateService {
|
|
//订单号
|
|
//订单号
|
|
map.put("thing1",title);
|
|
map.put("thing1",title);
|
|
map.put("thing4",remark);
|
|
map.put("thing4",remark);
|
|
- String tempId = "YyaBF62vH1GPKY0tume8C2C5UETxcKrVsaTKdBW5eok";
|
|
|
|
|
|
+ String tempId = wxMiniappTempConfig.getInquiryTempID();
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/inquiryOrderDetails?orderId=" + orderId, map);
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/inquiryOrderDetails?orderId=" + orderId, map);
|
|
}
|
|
}
|
|
@@ -54,7 +58,7 @@ public class WeixinTemplateService {
|
|
//订单号
|
|
//订单号
|
|
map.put("thing1",title);
|
|
map.put("thing1",title);
|
|
map.put("thing4",remark);
|
|
map.put("thing4",remark);
|
|
- String tempId = "YyaBF62vH1GPKY0tume8C2C5UETxcKrVsaTKdBW5eok";
|
|
|
|
|
|
+ String tempId = wxMiniappTempConfig.getInquiryTempID();;
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/inquiryOrderDetails?orderId=" + orderId, map);
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/inquiryOrderDetails?orderId=" + orderId, map);
|
|
}
|
|
}
|
|
@@ -71,7 +75,7 @@ public class WeixinTemplateService {
|
|
map.put("time7",df.format(createTime));
|
|
map.put("time7",df.format(createTime));
|
|
map.put("character_string9",orderCode);
|
|
map.put("character_string9",orderCode);
|
|
map.put("thing4",remark);
|
|
map.put("thing4",remark);
|
|
- String tempId = "jARl4BpoBkRu-2MxPMkQVhIfGMG0V9qW-X3V_7NtEOU";
|
|
|
|
|
|
+ String tempId = wxMiniappTempConfig.getPayOrderTempID();
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/packageOrderDetails?orderId=" + orderId, map);
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_order/packageOrderDetails?orderId=" + orderId, map);
|
|
}
|
|
}
|
|
@@ -85,7 +89,7 @@ public class WeixinTemplateService {
|
|
Map<String,String> map = new HashMap<>();
|
|
Map<String,String> map = new HashMap<>();
|
|
map.put("thing1",title);
|
|
map.put("thing1",title);
|
|
map.put("thing4",remark);
|
|
map.put("thing4",remark);
|
|
- String tempId = "YyaBF62vH1GPKY0tume8C2C5UETxcKrVsaTKdBW5eok";
|
|
|
|
|
|
+ String tempId = wxMiniappTempConfig.getInquiryTempID();
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_user/followList", map);
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages_user/followList", map);
|
|
}
|
|
}
|
|
@@ -99,7 +103,7 @@ public class WeixinTemplateService {
|
|
Map<String,String> map = new HashMap<>();
|
|
Map<String,String> map = new HashMap<>();
|
|
map.put("thing1",title);
|
|
map.put("thing1",title);
|
|
map.put("thing4",remark);
|
|
map.put("thing4",remark);
|
|
- String tempId = "YyaBF62vH1GPKY0tume8C2C5UETxcKrVsaTKdBW5eok";
|
|
|
|
|
|
+ String tempId = wxMiniappTempConfig.getInquiryTempID();
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
if(StrUtil.isNotBlank(tempId)) {
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages/TUIKit/TUIPages/TUIConversation/index" , map);
|
|
this.sendWxMpTemplateMessage(openId, tempId, "pages/TUIKit/TUIPages/TUIConversation/index" , map);
|
|
}
|
|
}
|