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();