Showing
1 changed file
with
2 additions
and
6 deletions
@@ -48,9 +48,7 @@ public class SearchLikeSecneController { | @@ -48,9 +48,7 @@ public class SearchLikeSecneController { | ||
48 | Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); | 48 | Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); |
49 | int viewNum = MapUtils.getIntValue(paramMap, "viewNum", 10); | 49 | int viewNum = MapUtils.getIntValue(paramMap, "viewNum", 10); |
50 | int uid = MapUtils.getIntValue(paramMap, "uid", 0); | 50 | int uid = MapUtils.getIntValue(paramMap, "uid", 0); |
51 | - if (uid % 1024 < 512) { | ||
52 | - paramMap.put("use_yoho_image", "false"); | ||
53 | - } else { | 51 | + if (uid % 1024 >= 512) { |
54 | paramMap.put("use_yoho_image", "true"); | 52 | paramMap.put("use_yoho_image", "true"); |
55 | } | 53 | } |
56 | SearchApiResult result = searchLikeInShopService.searchLikeInShop(paramMap); | 54 | SearchApiResult result = searchLikeInShopService.searchLikeInShop(paramMap); |
@@ -63,9 +61,7 @@ public class SearchLikeSecneController { | @@ -63,9 +61,7 @@ public class SearchLikeSecneController { | ||
63 | Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); | 61 | Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); |
64 | int viewNum = MapUtils.getIntValue(paramMap, "viewNum", 10); | 62 | int viewNum = MapUtils.getIntValue(paramMap, "viewNum", 10); |
65 | int uid = MapUtils.getIntValue(paramMap, "uid", 0); | 63 | int uid = MapUtils.getIntValue(paramMap, "uid", 0); |
66 | - if (uid % 1024 < 512) { | ||
67 | - paramMap.put("use_yoho_image", "false"); | ||
68 | - } else { | 64 | + if (uid % 1024 >= 512) { |
69 | paramMap.put("use_yoho_image", "true"); | 65 | paramMap.put("use_yoho_image", "true"); |
70 | } | 66 | } |
71 | SearchApiResult result = searchLikeNotInShopService.searchLikeSimilarSknNotInShop(paramMap); | 67 | SearchApiResult result = searchLikeNotInShopService.searchLikeSimilarSknNotInShop(paramMap); |
-
Please register or login to post a comment