@@ -178,6 +178,7 @@ public class RecallService implements ApplicationContextAware {
strategies.add(strategyMap.get(ReturnVideoRecallStrategy.class.getSimpleName()));
strategies.add(strategyMap.get(SceneCFRovnRecallStrategy.class.getSimpleName()));
strategies.add(strategyMap.get(SceneCFRosnRecallStrategy.class.getSimpleName()));
+ break;
default:
strategies.addAll(getRegionRecallStrategy(param));
}
@@ -70,7 +70,7 @@ public class SceneCFRosnRecallStrategy implements RecallStrategy {
// 6 返回结果
videosResult.sort(Comparator.comparingDouble(o -> -o.getRovScore()));
} catch (Exception e) {
- log.error(String.format("json parse is wrong in {}, key={}, error={}", CLASS_NAME, redisKey, e));
+ log.error("json parse is wrong in {}, key={}, error={}", CLASS_NAME, redisKey, e);
return videosResult;
@@ -70,7 +70,7 @@ public class SceneCFRovnRecallStrategy implements RecallStrategy {