mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
fix: 用户信息查询
This commit is contained in:
parent
f83660a738
commit
f17fbaab26
@ -60,7 +60,7 @@ public class UserParamController {
|
||||
XzException400.throwBy(ObjUtil.isNull(req.getUserId()), "用户ID为必填项");
|
||||
baseService.update(req);
|
||||
baseService.refresh();
|
||||
return R.ok(baseService.selectMap(AuthContext.getUserId(), true, UserParamEnum.values()));
|
||||
return R.ok(baseService.selectMap(req.getUserId(), true, UserParamEnum.values()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,7 +169,7 @@ public class UserController {
|
||||
Map<String, String> paramMap = paramService.selectMap(true, ParamEnum.values());
|
||||
user.setParams(paramMap);
|
||||
paramMap.put("SERVER_VERSION", SpringUtil.get("project.base.version"));
|
||||
Map<String, String> userParamMap = userParamService.selectMap(AuthContext.getUserId(), true, UserParamEnum.values());
|
||||
Map<String, String> userParamMap = userParamService.selectMap(userId, true, UserParamEnum.values());
|
||||
user.setUserParams(userParamMap);
|
||||
return R.ok(user);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user