|
@@ -3,9 +3,9 @@ package com.tzld.longarticle.recommend.server.service.strategy.reply.impl;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.cgi.ReplyStrategyServiceEnum;
|
|
|
-import com.tzld.longarticle.recommend.server.model.cgi.*;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.crawler.AlgGhAutoreplyVideoRankDataMapper;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.crawler.CgiReplyBucketDataMapper;
|
|
|
+import com.tzld.longarticle.recommend.server.model.cgi.*;
|
|
|
import com.tzld.longarticle.recommend.server.repository.model.AlgGhAutoreplyVideoRankData;
|
|
|
import com.tzld.longarticle.recommend.server.repository.model.AlgGhAutoreplyVideoRankDataExample;
|
|
|
import com.tzld.longarticle.recommend.server.repository.model.CgiReplyBucketData;
|
|
@@ -15,6 +15,7 @@ import com.tzld.longarticle.recommend.server.service.strategy.reply.ReplyStrateg
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
@@ -37,7 +38,8 @@ public class BuckStrategyV1 implements ReplyStrategyService {
|
|
|
*/
|
|
|
private static final String bucketStrategyConfig = "{\"stg0909-base\":[5,6],\"stg0909-explore1\":[7],\"stg0909-explore2\":[8,9]}";
|
|
|
|
|
|
- private static final String bucketStrategyConfigV2 = "{\"default\":{\"base\":[0,1,2,3,4],\"stg0909-base\":[5,6],\"stg0909-explore1\":[7],\"stg0909-explore2\":[8,9]},\"gh_ac43e43b253b\":{\"base\":[0,1],\"stg0909-base\":[2,3,4,5,6],\"stg0909-explore1\":[7],\"stg0909-explore2\":[8,9]}}";
|
|
|
+ @Value("${bucketStrategyConfig:{}}")
|
|
|
+ private String bucketStrategyConfigV2;
|
|
|
|
|
|
/**
|
|
|
* 自动回复使用小程序Id
|