Ver Fonte

删除追踪链接存redis操作

zyy há 1 semana atrás
pai
commit
eb8c297651

+ 1 - 13
fs-service/src/main/java/com/fs/sop/service/impl/SopUserLogsInfoServiceImpl.java

@@ -2086,11 +2086,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
 
                         String link = createH5GjLinkByMiniApp(st, param.getCorpId(), dataTime, param.getCourseId(), param.getVideoId(),
                                 String.valueOf(qwUser.getId()), companyUserId, companyId, item.getExternalId(), config);;
-                        String cacheKey = buildXsyLinkCacheKey(param.getCorpId(),param.getCourseId(),param.getVideoId(),companyUserId,companyId);
-                        //从redis中查询收否已经存在追踪链接
-                        String xsyTrackUrl = redisCache.getCacheObject(cacheKey).toString();
-                        if (StringUtils.isBlank(xsyTrackUrl)){
-                            // 失败不影响主流程
+//
                             try {
                                 if (StringUtils.isEmpty(link)) {
                                     log.warn("销售易素材处理跳过,原因:生成原始链接为空。sopId={}, userId={}, externalId={}",
@@ -2154,10 +2150,6 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
                                     st.setXsyLinkUrl(xsyRedirectUrl);
                                     st.setLinkUrl(xsyRedirectUrl);
 
-                                    //将追踪链接存入redis
-                                    redisCache.setCacheObject(cacheKey, xsyRedirectUrl, 10, TimeUnit.DAYS);
-                                    log.info("销售易追踪链接写入缓存成功,cacheKey={}, xsyRedirectUrl={}", cacheKey, xsyRedirectUrl);
-
                                     log.info("销售易素材创建并生成追踪链接成功。sopId={}, userId={}, externalId={}, materialId={}, redirectUrl={}",
                                             item.getSopId(), item.getFsUserId(), item.getExternalId(),
                                             materialWithUpload.getMaterialId(), xsyRedirectUrl);
@@ -2172,10 +2164,6 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
                                     st.setXsyLinkUrl(link);
                                 }
                             }
-                        }
-
-                        st.setXsyLinkUrl(xsyTrackUrl);
-                        st.setLinkUrl(xsyTrackUrl);
 
 
                         if (StringUtils.isNotEmpty(link)) {