|
@@ -28,10 +28,10 @@ public class ProductListSwitchService { |
|
@@ -28,10 +28,10 @@ public class ProductListSwitchService { |
28
|
@Autowired
|
28
|
@Autowired
|
29
|
private FuzzySceneProductListService fuzzySceneProductListService;
|
29
|
private FuzzySceneProductListService fuzzySceneProductListService;
|
30
|
|
30
|
|
31
|
-// private boolean isAUser(int uid) {
|
|
|
32
|
-// int tail = uid % 1024;
|
|
|
33
|
-// return tail < 512 ? true : false;
|
|
|
34
|
-// }
|
31
|
+ private boolean isAUser(int uid) {
|
|
|
32
|
+ int tail = uid % 1024;
|
|
|
33
|
+ return tail < 512 ? true : false;
|
|
|
34
|
+ }
|
35
|
|
35
|
|
36
|
/**
|
36
|
/**
|
37
|
* 普通商品列表入口
|
37
|
* 普通商品列表入口
|
|
@@ -66,11 +66,11 @@ public class ProductListSwitchService { |
|
@@ -66,11 +66,11 @@ public class ProductListSwitchService { |
66
|
return defaultProductListService.productListForDefaultPersional(paramMap);
|
66
|
return defaultProductListService.productListForDefaultPersional(paramMap);
|
67
|
}
|
67
|
}
|
68
|
|
68
|
|
69
|
-// // 5、个性化版本A/B 测试
|
|
|
70
|
-// int uid = searchCommonHelper.getUid(paramMap);
|
|
|
71
|
-// if(uid>0 && isAUser(uid)){
|
|
|
72
|
-// return defaultProductListService.productListForDefaultPersional(paramMap);
|
|
|
73
|
-// }
|
69
|
+ // 5个性化版本A/B 测试
|
|
|
70
|
+ int uid = searchCommonHelper.getUid(paramMap);
|
|
|
71
|
+ if(uid>0 && isAUser(uid)){
|
|
|
72
|
+ return defaultProductListService.productListForDefaultPersional(paramMap);
|
|
|
73
|
+ }
|
74
|
|
74
|
|
75
|
// 6、是否使用新的召回策略
|
75
|
// 6、是否使用新的召回策略
|
76
|
boolean searchPersionalNewStrategyOpen = searchDynamicConfigService.searchPersionalNewStrategyOpen();
|
76
|
boolean searchPersionalNewStrategyOpen = searchDynamicConfigService.searchPersionalNewStrategyOpen();
|