fix(系统设置): encode中文ID后台接口报错
--bug=1027764 --user=宋昌昌 【系统设置】用户-之前测试产生的中文ID的用户无法删除 https://www.tapd.cn/55049933/s/1398071
This commit is contained in:
parent
6a61b00dbb
commit
7f4c0a1a04
|
@ -62,10 +62,10 @@ public class UserController {
|
|||
return userService.getUserGroup(userId);
|
||||
}
|
||||
|
||||
@GetMapping("/special/delete/{userId}")
|
||||
@GetMapping("/special/delete")
|
||||
@MsAuditLog(module = OperLogModule.SYSTEM_USER, type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#userId)", msClass = UserService.class)
|
||||
@RequiresPermissions(PermissionConstants.SYSTEM_USER_READ_DELETE)
|
||||
public void deleteUser(@PathVariable(value = "userId") String userId) {
|
||||
public void deleteUser(@RequestParam(name = "userId") String userId) {
|
||||
userService.deleteUser(userId);
|
||||
// 剔除在线用户
|
||||
SessionUtils.kickOutUser(userId);
|
||||
|
|
|
@ -22,7 +22,7 @@ export function updateInfo(id, data) {
|
|||
}
|
||||
|
||||
export function specialDeleteUserById(id) {
|
||||
return get(`/user/special/delete/${id}`);
|
||||
return get(`/user/special/delete?userId=` + id);
|
||||
}
|
||||
|
||||
export function specialCreateUser(user) {
|
||||
|
|
Loading…
Reference in New Issue