提交 d345be49 作者: 沈振路

替换获客链接的监听器添加日志

上级 07770a53
......@@ -44,6 +44,7 @@ public class DelayCustomerAcquisitionListener implements ApplicationListener<Acq
// 过滤出发送链接是 fromPath 或者发送文本中的跳转链接包含 fromPath 的延时客服配置
List<CustomerGraphicsDelay> containsFromPathGraphicsList = allCustomerGraphicsDelayList.stream().filter(v -> (StringUtils.isNotBlank(v.getSourceUrl()) && v.getSourceUrl().contains(fromPath)) || (StringUtils.isNotBlank(v.getContent()) && v.getContent().contains(fromPath))).collect(Collectors.toList());
if (CollectionUtil.isEmpty(containsFromPathGraphicsList)) {
log.info("公众号:{} 暂无使用获客链接:{} 的延时客服配置", authorizerInfo.getAppid(), fromPath);
return;
}
List<Long> graphicsIds = containsFromPathGraphicsList.stream().map(CustomerGraphicsDelay::getId).collect(Collectors.toList());
......
......@@ -47,6 +47,7 @@ public class FollowReplyAcquisitionListener implements ApplicationListener<Acqui
// 过滤出发送链接是 fromPath 或者发送文本中的跳转链接包含 fromPath 的延时客服配置
List<CustomerFollowReply> containsFromPathGraphicsList = allCustomerFollowReplyList.stream().filter(v -> (StringUtils.isNotBlank(v.getSourceUrl()) && v.getSourceUrl().contains(fromPath)) || (StringUtils.isNotBlank(v.getContent()) && v.getContent().contains(fromPath))).collect(Collectors.toList());
if (CollectionUtil.isEmpty(containsFromPathGraphicsList)) {
log.info("公众号:{} 暂无使用获客链接:{} 的关回配置", authorizerInfo.getAppid(), fromPath);
return;
}
List<Long> graphicsIds = containsFromPathGraphicsList.stream().map(CustomerFollowReply::getId).collect(Collectors.toList());
......
......@@ -47,6 +47,7 @@ public class KeywordAcquisitionListener implements ApplicationListener<Acquisiti
// 过滤出发送链接是 fromPath 或者发送文本中的跳转链接包含 fromPath 的延时客服配置
List<CustomerKeyword> containsFromPathGraphicsList = allCustomerKeywordList.stream().filter(v -> (StringUtils.isNotBlank(v.getSourceUrl()) && v.getSourceUrl().contains(fromPath)) || (StringUtils.isNotBlank(v.getContent()) && v.getContent().contains(fromPath))).collect(Collectors.toList());
if (CollectionUtil.isEmpty(containsFromPathGraphicsList)) {
log.info("公众号:{} 暂无使用获客链接:{} 的关键词回复配置", authorizerInfo.getAppid(), fromPath);
return;
}
List<Long> graphicsIds = containsFromPathGraphicsList.stream().map(CustomerKeyword::getId).collect(Collectors.toList());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论