From e9b7260197328abb27d667ff49fd1d162852e34d Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Thu, 11 Jan 2024 10:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huoran/nakadai/controller/OrderController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nakadai/src/main/java/com/huoran/nakadai/controller/OrderController.java b/nakadai/src/main/java/com/huoran/nakadai/controller/OrderController.java index fba9a08..79deedf 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/controller/OrderController.java +++ b/nakadai/src/main/java/com/huoran/nakadai/controller/OrderController.java @@ -232,9 +232,9 @@ public class OrderController { public ServerResponseEntity info(@PathVariable("orderNumber") String orderNumber,HttpServletRequest request) { Integer shopId = TokenUtils.getShopIdByJwtToken(request); Order order = orderService.getOrderByOrderNumber(orderNumber); - if (!Objects.equal(shopId, order.getShopId())) { - throw new YamiShopBindException("您没有权限获取该订单信息"); - } +// if (!Objects.equal(shopId, order.getShopId())) { +// throw new YamiShopBindException("您没有权限获取该订单信息"); +// } List orderItems = orderItemService.getOrderItemsByOrderNumber(orderNumber); order.setOrderItems(orderItems); // UserAddrOrder userAddrOrder = userAddrOrderService.getById(order.getAddrOrderId());