Authored by mali

券商品列表的代码优化

@@ -567,11 +567,11 @@ public class ProductSearchServiceImpl implements ProductSearchService { @@ -567,11 +567,11 @@ public class ProductSearchServiceImpl implements ProductSearchService {
567 // 如果券包含的商品列表、排除的商品列表太多,则调用搜索的时候会报参数链接太长,所以这里进行截取 567 // 如果券包含的商品列表、排除的商品列表太多,则调用搜索的时候会报参数链接太长,所以这里进行截取
568 if (StringUtils.isNotEmpty(couponInfo.getContainsProductIds()) 568 if (StringUtils.isNotEmpty(couponInfo.getContainsProductIds())
569 && couponInfo.getContainsProductIds().length() > 1800) { 569 && couponInfo.getContainsProductIds().length() > 1800) {
570 - couponInfo.setContainsProductIds(couponInfo.getContainsProductIds().substring(0, 1800)); 570 + couponInfo.setContainsProductIds(couponInfo.getContainsProductIds().substring(0, 1799));
571 } 571 }
572 if (StringUtils.isNotEmpty(couponInfo.getExcludeProductIds()) 572 if (StringUtils.isNotEmpty(couponInfo.getExcludeProductIds())
573 && couponInfo.getExcludeProductIds().length() > 1800) { 573 && couponInfo.getExcludeProductIds().length() > 1800) {
574 - couponInfo.setExcludeProductIds(couponInfo.getExcludeProductIds().substring(0, 1800)); 574 + couponInfo.setExcludeProductIds(couponInfo.getExcludeProductIds().substring(0, 1799));
575 } 575 }
576 return couponInfo; 576 return couponInfo;
577 } 577 }