Authored by Lixiaodi

限制销售商品

@@ -545,19 +545,17 @@ public class ProductController { @@ -545,19 +545,17 @@ public class ProductController {
545 545
546 @ApiOperation(name = "ufo.product.limitInfo", desc = "商品限制出售信息") 546 @ApiOperation(name = "ufo.product.limitInfo", desc = "商品限制出售信息")
547 @IgnoreSignature 547 @IgnoreSignature
548 - @IgnoreSession  
549 @RequestMapping(params = "method=ufo.product.limitInfo") 548 @RequestMapping(params = "method=ufo.product.limitInfo")
550 @Cachable(expire = 180) 549 @Cachable(expire = 180)
551 public ApiResponse queryProductLimitInfo( 550 public ApiResponse queryProductLimitInfo(
552 @RequestParam(value = "product_id") Integer productId 551 @RequestParam(value = "product_id") Integer productId
553 - , @RequestParam(value = "user_id") Integer userId) { 552 + , @RequestParam(value = "user_id", required = false) Integer userId) {
554 LOG.info("in method=ufo.product.queryProductLimitInfo product_id={}, uerId={}", productId, userId); 553 LOG.info("in method=ufo.product.queryProductLimitInfo product_id={}, uerId={}", productId, userId);
555 if (null == productId) { 554 if (null == productId) {
556 LOG.info("in method=ufo.product.queryProductLimitInfo product_id Is Null"); 555 LOG.info("in method=ufo.product.queryProductLimitInfo product_id Is Null");
557 return new ApiResponse(400, "product_id Is Null", null); 556 return new ApiResponse(400, "product_id Is Null", null);
558 } 557 }
559 JSONObject result = new JSONObject(); 558 JSONObject result = new JSONObject();
560 - result.put("", "");  
561 String productIdInfo = configReader.getString("ufo.product.productLimitInfo", ""); 559 String productIdInfo = configReader.getString("ufo.product.productLimitInfo", "");
562 LOG.info("in ufo.product.queryProductLimitInfo queryProductLimitInfo Is {}", productIdInfo); 560 LOG.info("in ufo.product.queryProductLimitInfo queryProductLimitInfo Is {}", productIdInfo);
563 if (StringUtils.contains(productIdInfo, Integer.toString(productId))) { 561 if (StringUtils.contains(productIdInfo, Integer.toString(productId))) {