Commit 2b2bacf2 by zhouhaibao

java配置添加

1 parent 8d1d339a
...@@ -49,7 +49,7 @@ public class ControllerSendMessageDemo { ...@@ -49,7 +49,7 @@ public class ControllerSendMessageDemo {
List<CustomerInfo> customerInfoList = SopHelper.getMeetWithCustomer(sopInstNode, resultData); List<CustomerInfo> customerInfoList = SopHelper.getMeetWithCustomer(sopInstNode, resultData);
// 营销的客户存在 // 营销的客户存在
if (CollectionUtils.isNotEmpty(customerInfoList)) { if (CollectionUtils.isNotEmpty(customerInfoList)) {
// 获取营销类型 1.短信发送 2.企微群发 3.企微朋友圈 // 获取营销类型 10.短信发送 9.企微群发 8.企微朋友圈
String sendType = SopHelper.getValueFromJsonString(nodeParam, "taskType"); String sendType = SopHelper.getValueFromJsonString(nodeParam, "taskType");
if (StringUtils.isNotEmpty(sendType)) { if (StringUtils.isNotEmpty(sendType)) {
List<CustomerTouchModel> customerTouchModels = new ArrayList<>(); List<CustomerTouchModel> customerTouchModels = new ArrayList<>();
...@@ -152,6 +152,8 @@ public class ControllerSendMessageDemo { ...@@ -152,6 +152,8 @@ public class ControllerSendMessageDemo {
if (CollectionUtils.isNotEmpty(customerTouchSourceModels)) { if (CollectionUtils.isNotEmpty(customerTouchSourceModels)) {
for (CustomerTouchSourceModel customerTouchSourceModel : customerTouchSourceModels) { for (CustomerTouchSourceModel customerTouchSourceModel : customerTouchSourceModels) {
Integer attType = customerTouchSourceModel.getAttType(); Integer attType = customerTouchSourceModel.getAttType();
// attType 1.文本 2.图片 3.视频 4.小程序
// 小程序替换参数 flag 发送短信替换签名
if (4 == attType.intValue()) { if (4 == attType.intValue()) {
String attContent = customerTouchSourceModel.getAttContent(); String attContent = customerTouchSourceModel.getAttContent();
String replace = attContent.replace("{1}", merchantId).replace("{2}", nodeId + "") String replace = attContent.replace("{1}", merchantId).replace("{2}", nodeId + "")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!