fix(系统设置): 修复特殊符号导致get请求报错的缺陷

--bug=1036950 --user=王孝刚 【系统设置】github#29385,用户ID包含特殊字符,导致访问用户/成员列表报错
https://www.tapd.cn/55049933/s/1517530
This commit is contained in:
wxg0103 2024-05-21 14:30:47 +08:00 committed by 刘瑞斌
parent 1c197dd589
commit 9d0926cd78
2 changed files with 4 additions and 4 deletions

View File

@ -60,8 +60,8 @@ public class UserController {
return PageUtils.setPageInfo(page, userService.getUserListWithRequest(request));
}
@GetMapping("/special/user/group/{userId}")
public UserGroupPermissionDTO getUserGroup(@PathVariable("userId") String userId) {
@PostMapping("/special/user/group")
public UserGroupPermissionDTO getUserGroup(@RequestBody String userId) {
return userService.getUserGroup(userId);
}
@ -199,7 +199,7 @@ public class UserController {
}
@GetMapping("/project/member/delete/{projectId}/{userId}")
@RequiresPermissions(value={PermissionConstants.PROJECT_USER_READ_DELETE, PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_DELETE_USER}, logical = Logical.OR)
@RequiresPermissions(value = {PermissionConstants.PROJECT_USER_READ_DELETE, PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_DELETE_USER}, logical = Logical.OR)
@MsRequestLog(module = OperLogModule.PROJECT_PROJECT_MEMBER)
public void deleteProjectMember(@PathVariable String projectId, @PathVariable String userId) {
String currentUserId = SessionUtils.getUser().getId();

View File

@ -47,7 +47,7 @@ export function specialListUsers(data, page, size) {
}
export function specialGetUserGroup(userId) {
return get(`/user/special/user/group/${userId}`);
return post(`/user/special/user/group`, userId);
}
export function specialModifyUserDisable(user) {