update 优化远程调用异常处理

This commit is contained in:
疯狂的狮子li
2022-02-21 18:30:32 +08:00
parent 1fc833d876
commit a90cb2b6b3
3 changed files with 4 additions and 16 deletions

View File

@@ -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);