mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-01 18:34:30 +00:00
全局异常处理
This commit is contained in:
@@ -55,6 +55,12 @@ public class SysLoginService
|
||||
}
|
||||
// 查询用户信息
|
||||
R<LoginUser> userResult = remoteUserService.getUserInfo(username);
|
||||
|
||||
if (R.FAIL == userResult.getCode())
|
||||
{
|
||||
throw new BaseException(userResult.getMsg());
|
||||
}
|
||||
|
||||
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData()))
|
||||
{
|
||||
remoteLogService.saveLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
|
||||
|
Reference in New Issue
Block a user