From 2b12cc5d27254cc55152b0320190a7d59b048b26 Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Mon, 9 Sep 2024 14:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=88=97=E8=A1=A8=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/muyu/market/controller/SysApitypeController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java b/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java index d1b7c87..f48ce31 100644 --- a/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java +++ b/cloud-market-server/src/main/java/com/muyu/market/controller/SysApitypeController.java @@ -129,8 +129,9 @@ public class SysApitypeController extends BaseController return JavaGetConfig.standing(standing); } - @PostMapping("/standing/{res}/{userId}") - public Result updateCreateByUserId(@PathVariable("res") Integer res,@PathVariable("userId") Long userId) { + @PostMapping("/standing/{res}") + public Result updateCreateByUserId(@PathVariable("res") Integer res) { + Long userId = SecurityUtils.getUserId(); UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId); if(res!=1||userRole!=null){ return Result.error();