|
@@ -723,9 +723,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
//加粉深度回传逻辑.
|
|
//加粉深度回传逻辑.
|
|
|
if(StrUtil.isNotBlank(message.getState()) && message.getState().contains(Constant.ACQUISTION_LINK_STATE_KEY)){
|
|
if(StrUtil.isNotBlank(message.getState()) && message.getState().contains(Constant.ACQUISTION_LINK_STATE_KEY)){
|
|
|
String customer = message.getState().replaceAll("customer_", "");
|
|
String customer = message.getState().replaceAll("customer_", "");
|
|
|
- THREAD_POOL.execute(()->{
|
|
|
|
|
- saveAcqusitionCallback(customer, corpUser, message);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ saveAcqusitionCallback(customer, corpUser, message);
|
|
|
isSendWelcomeMsg.set(true);
|
|
isSendWelcomeMsg.set(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1020,18 +1018,20 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
Long linkId = customerAcquisitionSaveClickId(customer, corpUser.getUnionid());
|
|
Long linkId = customerAcquisitionSaveClickId(customer, corpUser.getUnionid());
|
|
|
CorpCustomerAcquisitionLink customerAcquisitionLink;
|
|
CorpCustomerAcquisitionLink customerAcquisitionLink;
|
|
|
if (linkId != null) {
|
|
if (linkId != null) {
|
|
|
|
|
+ log.info("加粉链接linkid:{}", linkId);
|
|
|
customerAcquisitionLink = corpCustomerAcquisitionLinkMapper.getByLinkPopularizeId(linkId);
|
|
customerAcquisitionLink = corpCustomerAcquisitionLinkMapper.getByLinkPopularizeId(linkId);
|
|
|
} else {
|
|
} else {
|
|
|
//直接使用获客链接
|
|
//直接使用获客链接
|
|
|
customerAcquisitionLink = corpCustomerAcquisitionLinkMapper.selectById(customer);
|
|
customerAcquisitionLink = corpCustomerAcquisitionLinkMapper.selectById(customer);
|
|
|
}
|
|
}
|
|
|
if (customerAcquisitionLink == null) {
|
|
if (customerAcquisitionLink == null) {
|
|
|
|
|
+ log.info("未找到对应获客链接:{}", customer);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
corpUser.setCustomerAcquisitionLinkId(customerAcquisitionLink.getId());
|
|
corpUser.setCustomerAcquisitionLinkId(customerAcquisitionLink.getId());
|
|
|
if (StringUtils.isNotBlank(customerAcquisitionLink.getTags())){
|
|
if (StringUtils.isNotBlank(customerAcquisitionLink.getTags())){
|
|
|
try {
|
|
try {
|
|
|
- log.info("处理获客链接客户标签");
|
|
|
|
|
|
|
+ log.info("处理获客链接客户标签,标签id:{}", customerAcquisitionLink.getTags());
|
|
|
List<Long> tags = Jsons.parseList(customerAcquisitionLink.getTags(), Long.class);
|
|
List<Long> tags = Jsons.parseList(customerAcquisitionLink.getTags(), Long.class);
|
|
|
if (CollectionUtil.isEmpty(tags)) {
|
|
if (CollectionUtil.isEmpty(tags)) {
|
|
|
log.info("获客链接id为:{},无标签处理", customerAcquisitionLink.getId());
|
|
log.info("获客链接id为:{},无标签处理", customerAcquisitionLink.getId());
|