提交 82e15b24 作者: 沈振路

文本构造

上级 84f84289
......@@ -455,9 +455,13 @@ public class CustomerServiceCommonAsyncComponent {
} else if (CustomerCommonConstant.COMMON_NEWS_TYPE_LIST.contains(newsType)){
context = targetReferralEntity.getTextContent();
}
if (ObjectUtil.isNotNull(context) && StringUtils.isNotEmpty(referral)) {
if (ObjectUtil.isNotNull(context)) {
// 拼接的要替换链接
if (StringUtils.isNotEmpty(referral)) {
h5Context.append(context.replace(CustomerCommonConstant.CUSTOMER_TEXT_URL_PLACEHOLDER, referral));
}else {
h5Context.append(context);
}
if (idx != sourceReferralList.size()) {
h5Context.append("\n").append("\n");
}
......
......@@ -157,9 +157,14 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
} else if (CustomerCommonConstant.COMMON_NEWS_TYPE_LIST.contains(newsType)){
context = item.getTextContent();
}
if (ObjectUtil.isNotNull(context)) {
if (ObjectUtil.isNotNull(context) && StringUtils.isNotEmpty(item.getReferral())) {
// 拼接的要替换链接
if (StringUtils.isNotEmpty(item.getReferral())) {
mainH5Content.append(context.replace(CustomerCommonConstant.CUSTOMER_TEXT_URL_PLACEHOLDER, item.getReferral()));
}else {
mainH5Content.append(context);
}
if (idx != referralEntityList.size()) {
mainH5Content.append("\n").append("\n");
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论