From f70a2c853e28ebbc0e5b88d22480db39b9a339b3 Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Wed, 24 Jan 2024 17:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=95=86=E5=93=81=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/huoran/nakadai/controller/ProductController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nakadai/src/main/java/com/huoran/nakadai/controller/ProductController.java b/nakadai/src/main/java/com/huoran/nakadai/controller/ProductController.java index 8ed3bc3..754e25e 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/controller/ProductController.java +++ b/nakadai/src/main/java/com/huoran/nakadai/controller/ProductController.java @@ -111,9 +111,9 @@ public class ProductController { @ApiOperation(value = "获取商品信息", response = Product.class) public ServerResponseEntity info(@RequestParam("prodId") Integer prodId, HttpServletRequest request) { Product prod = productService.getProductByProdId(prodId); - if (!Objects.equals(prod.getShopId(), TokenUtils.getShopIdByJwtToken(request))) { - throw new YamiShopBindException("没有权限获取该商品规格信息"); - } +// if (!Objects.equals(prod.getShopId(), TokenUtils.getShopIdByJwtToken(request))) { +// throw new YamiShopBindException("没有权限获取该商品规格信息"); +// } List skuList = skuService.listByProdId(prodId); prod.setSkuList(skuList);