Ver Fonte

移除服务号分组群发随机策略

wangyunpeng há 12 horas atrás
pai
commit
95b7e1d352

+ 5 - 6
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/RecommendService.java

@@ -12,7 +12,6 @@ import com.tzld.longarticle.recommend.server.mapper.crawler.ext.ArticleUserGroup
 import com.tzld.longarticle.recommend.server.mapper.longArticle.LongArticleBaseMapper;
 import com.tzld.longarticle.recommend.server.model.dto.Content;
 import com.tzld.longarticle.recommend.server.model.dto.UserGroupCountDTO;
-import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishPlan;
 import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo;
 import com.tzld.longarticle.recommend.server.model.entity.crawler.PublishSortLog;
 import com.tzld.longarticle.recommend.server.model.param.RecommendParam;
@@ -166,11 +165,11 @@ public class RecommendService {
             }
         }
         // 服务号计划走服务号随机策略
-        PublishPlan publishPlan = publishPlanRepository.getById(param.getPlanId());
-        if (publishPlan.getName().contains("服务号")
-                && !Objects.equals(request.getPushType(), PushTypeEnum.BATCH_GROUP_PUBLISH.getVal())) {
-            param.setStrategy(RankStrategyEnum.FWH_STRATEGY.getStrategy());
-        }
+        //PublishPlan publishPlan = publishPlanRepository.getById(param.getPlanId());
+        //if (publishPlan.getName().contains("服务号")
+        //        && !Objects.equals(request.getPushType(), PushTypeEnum.BATCH_GROUP_PUBLISH.getVal())) {
+        //    param.setStrategy(RankStrategyEnum.FWH_STRATEGY.getStrategy());
+        //}
     }
 
     public RecommendWithUserGroupResponse recommend4FwhColdStart(RecommendRequest request) {