Showing
2 changed files
with
8 additions
and
4 deletions
@@ -29,4 +29,8 @@ public class ABUserPartitionUtils { | @@ -29,4 +29,8 @@ public class ABUserPartitionUtils { | ||
29 | return isAUser(udid); | 29 | return isAUser(udid); |
30 | } | 30 | } |
31 | 31 | ||
32 | + public static void main(String[] args) { | ||
33 | + System.out.println(isAUserComplete(13420925,"00bcfa1e5d7745ad8c4188929134da18f8485dbd")); | ||
34 | + } | ||
35 | + | ||
32 | } | 36 | } |
@@ -210,15 +210,15 @@ public class UserRecallResponseResultBuilder { | @@ -210,15 +210,15 @@ public class UserRecallResponseResultBuilder { | ||
210 | String udid = userRecallRequest.getUdid(); | 210 | String udid = userRecallRequest.getUdid(); |
211 | if (ABUserPartitionUtils.isAUserComplete(uid,udid)){ | 211 | if (ABUserPartitionUtils.isAUserComplete(uid,udid)){ |
212 | if (searchDynamicConfigService.isAStrategyOpen()) { | 212 | if (searchDynamicConfigService.isAStrategyOpen()) { |
213 | - score = sknResult.getUvScore(); | ||
214 | - } else { | ||
215 | score = W2vFeatureCalculator.calProductFeatureFactor(userFeatureFactor, sknResult.getFactor()); | 213 | score = W2vFeatureCalculator.calProductFeatureFactor(userFeatureFactor, sknResult.getFactor()); |
214 | + } else { | ||
215 | + score = sknResult.getUvScore(); | ||
216 | } | 216 | } |
217 | } else { | 217 | } else { |
218 | if (searchDynamicConfigService.isBStrategyOpen()) { | 218 | if (searchDynamicConfigService.isBStrategyOpen()) { |
219 | - score = W2vFeatureCalculator.calProductFeatureFactor(userFeatureFactor, sknResult.getFactor()); | ||
220 | - } else { | ||
221 | score = sknResult.getUvScore(); | 219 | score = sknResult.getUvScore(); |
220 | + } else { | ||
221 | + score = W2vFeatureCalculator.calProductFeatureFactor(userFeatureFactor, sknResult.getFactor()); | ||
222 | } | 222 | } |
223 | } | 223 | } |
224 | } else { | 224 | } else { |
-
Please register or login to post a comment