Browse Source

Merge branch 'featrue/20240416/sunxy/addClientIpParam' of algorithm/recommend-server into master

zhaohaipeng 1 year ago
parent
commit
30ef85409e

+ 4 - 2
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/filter/strategy/BlacklistContainer.java

@@ -179,7 +179,7 @@ public class BlacklistContainer {
             for (Long tagId : tagIdSet) {
                 List<WxVideoTagRel> wxVideoTagRels = wxVideoTagRelRepository.findAllByTagId(tagId);
                 Set<Long> videoIdSet = wxVideoTagRels.stream().map(WxVideoTagRel::getVideoId).collect(Collectors.toSet());
-                LOG.info("同步本地标签ID与视频列表缓存任务 -- tagId: {}, videoIdSize: {}", tagId, tagIdSet.size());
+                LOG.info("同步本地标签ID与视频列表缓存任务 -- tagId: {}, videoIdSize: {}", tagId, videoIdSet.size());
                 tmpMap.put(tagId, videoIdSet);
             }
         }
@@ -230,7 +230,9 @@ public class BlacklistContainer {
             }
 
             String userType = this.matchGeneralizationUserType(uid, cityCode, hotSceneType);
-            this.filterLogUpload(uid, cityCode, hotSceneType, clientIP, userType, "RegionAndHotSceneType");
+            if (StringUtils.isNotBlank(userType)) {
+                this.filterLogUpload(uid, cityCode, hotSceneType, clientIP, userType, "RegionAndHotSceneType");
+            }
             return userType;
         } catch (
                 Exception e) {