Explorar o código

feat:修复空指针异常

zhaohaipeng hai 2 meses
pai
achega
4338355116

+ 1 - 6
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/rank/strategy/RankStrategy4RegionMergeModelV568.java

@@ -237,12 +237,7 @@ public class RankStrategy4RegionMergeModelV568 extends RankStrategy4RegionMergeM
                         String tags = c34567Map.getOrDefault(key, "");
                         if (!tags.isEmpty()) {
                             Future<Pair<String, Double[]>> future = ThreadPoolFactory.defaultPool().submit(() -> {
-                                Double[] doubles = null;
-                                if (param.getAbExpCodes().contains(word2vecExp)) {
-                                    doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
-                                } else {
-                                    doubles = ExtractorUtils.funcC34567ForTags(tags, title);
-                                }
+                                Double[] doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
                                 return Pair.create(key, doubles);
                             });
                             futures.add(future);