From 85a21fdb54fa06f2fa6e25e763ec5337e85295e7 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期五, 16 八月 2024 16:55:34 +0800 Subject: [PATCH] 小程序登录 token失效全局异常 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TRoleSiteController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TRoleSiteController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TRoleSiteController.java index 043a2cd..089747c 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TRoleSiteController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TRoleSiteController.java @@ -32,8 +32,8 @@ * @return */ @ResponseBody - @GetMapping("/getSiteIds") - public R<List<Integer>> getSiteIds(Long roleId){ + @PostMapping("/getSiteIds/{roleId}") + public R<List<Integer>> getSiteIds(@PathVariable Long roleId){ List<TRoleSite> list = roleSiteService.list(new LambdaQueryWrapper<TRoleSite>().eq(TRoleSite::getRoleId, roleId)); List<Integer> collect = list.stream().map(TRoleSite::getSiteId).collect(Collectors.toList()); return R.ok(collect); @@ -45,7 +45,7 @@ * @return */ @ResponseBody - @PostMapping("/getSiteIds") + @PostMapping("/addRoleSite") public R addRoleSite(@RequestBody List<TRoleSite> roleSites){ roleSiteService.saveBatch(roleSites); return R.ok(); -- Gitblit v1.7.1