提交 ddf959cf 作者: 沈振路

获取链接异常状态处理

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