|
|
@@ -7,7 +7,6 @@ import cn.hutool.json.JSONArray;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
-import com.fs.common.exception.base.BusinessException;
|
|
|
import com.fs.common.utils.RedisUtil;
|
|
|
import com.fs.common.utils.SnowflakeUtil;
|
|
|
import com.fs.newAdv.domain.LandingPageTemplate;
|
|
|
@@ -15,6 +14,7 @@ import com.fs.newAdv.domain.Lead;
|
|
|
import com.fs.newAdv.domain.Site;
|
|
|
import com.fs.newAdv.dto.req.QwExternalIdBindTrackReq;
|
|
|
import com.fs.newAdv.dto.req.WeChatLandingIndexReq;
|
|
|
+import com.fs.newAdv.dto.req.updateNickNameReq;
|
|
|
import com.fs.newAdv.dto.res.LandingIndexRes;
|
|
|
import com.fs.newAdv.enums.AdvertiserTypeEnum;
|
|
|
import com.fs.newAdv.integration.adapter.IAdvertiserAdapter;
|
|
|
@@ -112,7 +112,7 @@ public class CallbackProcessingFacadeServiceImpl implements CallbackProcessingFa
|
|
|
clickId = "ylrz_test";
|
|
|
}
|
|
|
if (StrUtil.isEmpty(clickId)) {
|
|
|
- clickId = "ylrz_test"+ IdUtil.randomUUID();
|
|
|
+ clickId = "ylrz_test" + IdUtil.randomUUID();
|
|
|
}
|
|
|
|
|
|
return clickId;
|
|
|
@@ -120,7 +120,7 @@ public class CallbackProcessingFacadeServiceImpl implements CallbackProcessingFa
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public LandingIndexRes getLandingIndexBySiteId(String viewUrl,Map<String, String> allParams) {
|
|
|
+ public LandingIndexRes getLandingIndexBySiteId(String viewUrl, Map<String, String> allParams) {
|
|
|
// 站点信息
|
|
|
String paramsSiteId = allParams.get("siteId");
|
|
|
if (ObjectUtil.isEmpty(paramsSiteId)) {
|
|
|
@@ -304,4 +304,16 @@ public class CallbackProcessingFacadeServiceImpl implements CallbackProcessingFa
|
|
|
// 广告线索处理
|
|
|
leadService.updateAddMemberLead(req.getQwExternalId(), req.getUnionid());
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateNickName(updateNickNameReq req) {
|
|
|
+ Lead byTraceId = leadService.getByTraceId(req.getTraceId());
|
|
|
+ if (ObjectUtil.isEmpty(byTraceId)) {
|
|
|
+ log.error("更新昵称失败,未找到线索:{}", req);
|
|
|
+ }
|
|
|
+ Lead update = new Lead();
|
|
|
+ update.setId(byTraceId.getId());
|
|
|
+ update.setWeiChatName(req.getNickName());
|
|
|
+ leadService.updateById(update);
|
|
|
+ }
|
|
|
}
|