提交 24dbb448 作者: 沈振路

Merge branch 'customer_service_SZlu'

...@@ -404,6 +404,7 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -404,6 +404,7 @@ public class CustomerServiceCommonAsyncComponent {
// 遍历处理客服链接 // 遍历处理客服链接
int idx = 1; int idx = 1;
boolean normal = true; boolean normal = true;
boolean needLink = true;
for (ReferralEntity sourceReferralEntity : sourceReferralList) { for (ReferralEntity sourceReferralEntity : sourceReferralList) {
// 生成新的链接数据 // 生成新的链接数据
ReferralEntity targetReferralEntity = new ReferralEntity(); ReferralEntity targetReferralEntity = new ReferralEntity();
...@@ -432,13 +433,14 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -432,13 +433,14 @@ public class CustomerServiceCommonAsyncComponent {
// 常用链接 // 常用链接
generateDelayUsualLink(dateStr, targetReferralEntity, targetAuthInfo); generateDelayUsualLink(dateStr, targetReferralEntity, targetAuthInfo);
} else { } else {
needLink = false;
LOCAL_LOG.info("newsType: {}, 不需要获取链接", newsType); LOCAL_LOG.info("newsType: {}, 不需要获取链接", newsType);
} }
targetReferralEntityList.add(targetReferralEntity); targetReferralEntityList.add(targetReferralEntity);
// 图文主表只有一个素材链接,文本主表不需要存素材链接 // 图文主表只有一个素材链接,文本主表不需要存素材链接
String referral = targetReferralEntity.getReferral(); String referral = targetReferralEntity.getReferral();
if (StringUtils.isBlank(referral)) { if (needLink && StringUtils.isBlank(referral)) {
normal = false; normal = false;
} }
targetCustomerGraphics.setSourceUrl(referral); targetCustomerGraphics.setSourceUrl(referral);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论