mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-24 19:38:35 +08:00
update 优化远程调用异常处理
This commit is contained in:
@@ -35,7 +35,7 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||
private final ISysConfigService configService;
|
||||
|
||||
@Override
|
||||
public LoginUser getUserInfo(String username) {
|
||||
public LoginUser getUserInfo(String username) throws UserException {
|
||||
SysUser sysUser = userService.selectUserByUserName(username);
|
||||
if (ObjectUtil.isNull(sysUser)) {
|
||||
throw new UserException("user.not.exists", username);
|
||||
|
||||
Reference in New Issue
Block a user