提交 2fe153b3 作者: 沈振路

Merge branch 'customer_service_SZlu'

...@@ -403,6 +403,7 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -403,6 +403,7 @@ public class CustomerServiceCommonAsyncComponent {
// 遍历处理客服链接 // 遍历处理客服链接
int idx = 1; int idx = 1;
boolean normal = true;
for (ReferralEntity sourceReferralEntity : sourceReferralList) { for (ReferralEntity sourceReferralEntity : sourceReferralList) {
// 生成新的链接数据 // 生成新的链接数据
ReferralEntity targetReferralEntity = new ReferralEntity(); ReferralEntity targetReferralEntity = new ReferralEntity();
...@@ -437,6 +438,9 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -437,6 +438,9 @@ public class CustomerServiceCommonAsyncComponent {
// 图文主表只有一个素材链接,文本主表不需要存素材链接 // 图文主表只有一个素材链接,文本主表不需要存素材链接
String referral = targetReferralEntity.getReferral(); String referral = targetReferralEntity.getReferral();
if (StringUtils.isBlank(referral)) {
normal = false;
}
targetCustomerGraphics.setSourceUrl(referral); targetCustomerGraphics.setSourceUrl(referral);
if (type.equals(CustomerCommonConstant.CUSTOMER_TYPE_VALUE_TEXT)) { if (type.equals(CustomerCommonConstant.CUSTOMER_TYPE_VALUE_TEXT)) {
// 文本类型替换h5链接 // 文本类型替换h5链接
...@@ -457,8 +461,8 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -457,8 +461,8 @@ public class CustomerServiceCommonAsyncComponent {
idx += 1; idx += 1;
} }
} }
targetCustomerGraphics.setSendStatus(normal ? CustomerCommonConstant.SEND_STATUS_ACTIVE : CustomerCommonConstant.SEND_STATUS_LINK_ERROR);
targetCustomerGraphics.setSendStatus(CustomerCommonConstant.SEND_STATUS_ACTIVE);
if (StringUtils.isNotBlank(h5Context)) { if (StringUtils.isNotBlank(h5Context)) {
targetCustomerGraphics.setContent(h5Context.toString().replace(CustomerCommonConstant.H5_STYLE_CODE, "")); targetCustomerGraphics.setContent(h5Context.toString().replace(CustomerCommonConstant.H5_STYLE_CODE, ""));
} }
......
...@@ -63,7 +63,7 @@ public class CustomerCommonConstant { ...@@ -63,7 +63,7 @@ public class CustomerCommonConstant {
public final static Integer SEND_STATUS_ACTIVE = 9; public final static Integer SEND_STATUS_ACTIVE = 9;
public final static Integer SEND_STATUS_SENT_SUCCESS = 3; public final static Integer SEND_STATUS_LINK_ERROR = 3;
public final static Integer SEND_STATUS_SENT_FAIL = 4; public final static Integer SEND_STATUS_SENT_FAIL = 4;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论