|
@@ -5,6 +5,7 @@ import com.tzld.piaoquan.recommend.server.common.enums.AppTypeEnum;
|
|
import com.tzld.piaoquan.recommend.server.model.Video;
|
|
import com.tzld.piaoquan.recommend.server.model.Video;
|
|
import com.tzld.piaoquan.recommend.server.service.flowpool.FlowPoolConstants;
|
|
import com.tzld.piaoquan.recommend.server.service.flowpool.FlowPoolConstants;
|
|
import com.tzld.piaoquan.recommend.server.service.recall.strategy.*;
|
|
import com.tzld.piaoquan.recommend.server.service.recall.strategy.*;
|
|
|
|
+import com.tzld.piaoquan.recommend.server.util.JSONUtils;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.BeansException;
|
|
import org.springframework.beans.BeansException;
|
|
@@ -43,6 +44,7 @@ public class RecallService implements ApplicationContextAware {
|
|
}
|
|
}
|
|
|
|
|
|
public RecallResult recall(RecallParam param) {
|
|
public RecallResult recall(RecallParam param) {
|
|
|
|
+ log.info("RecallParam {}", JSONUtils.toJson(param));
|
|
List<RecallStrategy> strategies = getRecallStrategy(param);
|
|
List<RecallStrategy> strategies = getRecallStrategy(param);
|
|
|
|
|
|
CountDownLatch cdl = new CountDownLatch(strategies.size());
|
|
CountDownLatch cdl = new CountDownLatch(strategies.size());
|
|
@@ -86,12 +88,12 @@ public class RecallService implements ApplicationContextAware {
|
|
if (param.getAppType() == AppTypeEnum.LAO_HAO_KAN_VIDEO.getCode()
|
|
if (param.getAppType() == AppTypeEnum.LAO_HAO_KAN_VIDEO.getCode()
|
|
|| param.getAppType() == AppTypeEnum.ZUI_JING_QI.getCode()) {
|
|
|| param.getAppType() == AppTypeEnum.ZUI_JING_QI.getCode()) {
|
|
strategies.addAll(getRegionRecallStrategy(param));
|
|
strategies.addAll(getRegionRecallStrategy(param));
|
|
- } else if (param.getAppType() == AppTypeEnum.PIAO_QUAN_MEIHAO_ZHUFU.getCode()){
|
|
+ } else if (param.getAppType() == AppTypeEnum.PIAO_QUAN_MEIHAO_ZHUFU.getCode()) {
|
|
strategies.add(strategyMap.get(BlessRecallStrategy.class.getSimpleName()));
|
|
strategies.add(strategyMap.get(BlessRecallStrategy.class.getSimpleName()));
|
|
strategies.add(strategyMap.get(RegionRealtimeRecallStrategyV2.class.getSimpleName()));
|
|
strategies.add(strategyMap.get(RegionRealtimeRecallStrategyV2.class.getSimpleName()));
|
|
strategies.add(strategyMap.get(RegionRealtimeRecallStrategyV3.class.getSimpleName()));
|
|
strategies.add(strategyMap.get(RegionRealtimeRecallStrategyV3.class.getSimpleName()));
|
|
return strategies;
|
|
return strategies;
|
|
- }else {
|
|
+ } else {
|
|
switch (abCode) {
|
|
switch (abCode) {
|
|
case "60120":
|
|
case "60120":
|
|
case "60121":
|
|
case "60121":
|