发售日历类型 1:有货; 2:ufo ; 3:混合
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -480,6 +480,9 @@ public class ProductSearchServiceImpl implements ProductSearchService { | @@ -480,6 +480,9 @@ public class ProductSearchServiceImpl implements ProductSearchService { | ||
480 | 480 | ||
481 | try { | 481 | try { |
482 | SearchParam searchParam = new SearchParam(); | 482 | SearchParam searchParam = new SearchParam(); |
483 | + if (!StringUtils.equals("1", type) && !StringUtils.equals("2", type)) { | ||
484 | + type = "3"; | ||
485 | + } | ||
483 | searchParam.setType(type); | 486 | searchParam.setType(type); |
484 | countMap = search(searchParam.getParam(), url).getJSONObject("sale_date_count_list"); | 487 | countMap = search(searchParam.getParam(), url).getJSONObject("sale_date_count_list"); |
485 | } catch (Exception e) { | 488 | } catch (Exception e) { |
@@ -530,6 +533,9 @@ public class ProductSearchServiceImpl implements ProductSearchService { | @@ -530,6 +533,9 @@ public class ProductSearchServiceImpl implements ProductSearchService { | ||
530 | ProductSearchReq req = new ProductSearchReq(); | 533 | ProductSearchReq req = new ProductSearchReq(); |
531 | req.setStartTime(startTime).setEndTime(endTime); | 534 | req.setStartTime(startTime).setEndTime(endTime); |
532 | SearchParam searchParam = new SearchParam().buildPageSearchParam(req); | 535 | SearchParam searchParam = new SearchParam().buildPageSearchParam(req); |
536 | + if (!StringUtils.equals("1", type) && !StringUtils.equals("2", type)) { | ||
537 | + type = "3"; | ||
538 | + } | ||
533 | searchParam.setType(type); | 539 | searchParam.setType(type); |
534 | JSONObject data = search(searchParam.getParam(), NEW_SALE_CALENDAR_LIST_URL); | 540 | JSONObject data = search(searchParam.getParam(), NEW_SALE_CALENDAR_LIST_URL); |
535 | // 将图片的相对路径转成绝对路径 | 541 | // 将图片的相对路径转成绝对路径 |
-
Please register or login to post a comment