Эх сурвалжийг харах

订单详情接口即便用token请求,也只能查看自己的数据

chenchen 5 сар өмнө
parent
commit
f3f1fd40dd

+ 2 - 0
application-webadmin/src/main/java/com/tourism/webadmin/app/website/controller/TourismOrderController.java

@@ -77,6 +77,8 @@ public class TourismOrderController {
     public ResponseResult<TourOrderVo> detail(@RequestParam Long orderId){
         TourOrder tourOder = new TourOrder();
         tourOder.setId(orderId);
+        TokenData tokenData = TokenData.takeFromRequest();
+        tourOder.setCustomerMobile(tokenData.getLoginName());
         TourOrder tourOder1 = tourOrderService.getOne(tourOder);
         TourOrderPassenage tourOrderPassenage = new TourOrderPassenage();
         tourOrderPassenage.setOrderId(orderId);