zoujiajian il y a 2 ans
Parent
commit
a08300b0b2

+ 2 - 5
netflix-web/src/main/java/com/cyksj/web/controller/payment/OrderController.java

@@ -412,11 +412,8 @@ public class OrderController {
      * 获取订单详情
      */
     @GetMapping("/get/{mOid}")
-    public Result<OrderMasterDetailView> detail(@PathVariable Long mOid, Boolean isNoLogin) {
-        Long userId = null;
-        if (isNoLogin == null || !isNoLogin) {
-            userId = StpUserUtil.getLoginIdAsLong();
-        }
+    public Result<OrderMasterDetailView> detail(@PathVariable Long mOid) {
+        Long userId = StpUserUtil.getUserIdAfterLogin();
 
         OrderMasterDetailView detail = orderDonService.getDetail(mOid, userId);