|
|
@@ -1100,21 +1100,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
//如果为加粉则直接回传
|
|
|
if (corpCustomerAcquisitionLinkPopularize.getType() == 1) {
|
|
|
//如果需要延后主动回传的做持久化.
|
|
|
- if(corpCustomerAcquisitionLinkPopularize.getDelayedPost()){
|
|
|
- CorpCustomerAcquistionCallback corpCustomerAcquistionCallback =
|
|
|
- corpCustomerAcquistionCallbackMapper.selectOne(Wrappers.lambdaQuery(CorpCustomerAcquistionCallback.class).eq(CorpCustomerAcquistionCallback::getCallback, callback).eq(CorpCustomerAcquistionCallback::getUnionId, unionId));
|
|
|
- if(corpCustomerAcquistionCallback == null){
|
|
|
- corpCustomerAcquistionCallback = new CorpCustomerAcquistionCallback();
|
|
|
- }
|
|
|
- corpCustomerAcquistionCallback.setCallback(callback);
|
|
|
- corpCustomerAcquistionCallback.setEvent(corpCustomerAcquistionCallback.getEvent());
|
|
|
- corpCustomerAcquistionCallback.setUnionId(unionId);
|
|
|
- if(corpCustomerAcquistionCallback.getId() != null){
|
|
|
- corpCustomerAcquistionCallbackMapper.updateById(corpCustomerAcquistionCallback);
|
|
|
- }else {
|
|
|
- corpCustomerAcquistionCallbackMapper.insert(corpCustomerAcquistionCallback);
|
|
|
- }
|
|
|
- }else {
|
|
|
+ if(!corpCustomerAcquisitionLinkPopularize.getDelayedPost()){
|
|
|
postData(callback, corpCustomerAcquisitionLinkPopularize.getEvent());
|
|
|
}
|
|
|
}else {
|
|
|
@@ -1126,6 +1112,22 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
//深度回传.
|
|
|
redisService.set(String.format(RedisService.key.CORP_CUSTOMER_ACQUISTION_UNIONID_CLICKID.getName(),unionId), json, corpCustomerAcquisitionLinkPopularize.getTime() * 60 * 60);
|
|
|
}
|
|
|
+
|
|
|
+ if(corpCustomerAcquisitionLinkPopularize.getDelayedPost()){
|
|
|
+ CorpCustomerAcquistionCallback corpCustomerAcquistionCallback =
|
|
|
+ corpCustomerAcquistionCallbackMapper.selectOne(Wrappers.lambdaQuery(CorpCustomerAcquistionCallback.class).eq(CorpCustomerAcquistionCallback::getCallback, callback).eq(CorpCustomerAcquistionCallback::getUnionId, unionId));
|
|
|
+ if(corpCustomerAcquistionCallback == null){
|
|
|
+ corpCustomerAcquistionCallback = new CorpCustomerAcquistionCallback();
|
|
|
+ }
|
|
|
+ corpCustomerAcquistionCallback.setCallback(callback);
|
|
|
+ corpCustomerAcquistionCallback.setEvent(corpCustomerAcquistionCallback.getEvent());
|
|
|
+ corpCustomerAcquistionCallback.setUnionId(unionId);
|
|
|
+ if(corpCustomerAcquistionCallback.getId() != null){
|
|
|
+ corpCustomerAcquistionCallbackMapper.updateById(corpCustomerAcquistionCallback);
|
|
|
+ }else {
|
|
|
+ corpCustomerAcquistionCallbackMapper.insert(corpCustomerAcquistionCallback);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|