|
|
@@ -210,10 +210,10 @@ public class SysLoginService
|
|
|
}
|
|
|
|
|
|
SysUser sysUser = new SysUser();
|
|
|
- String username = phoneNumber.getData();
|
|
|
+ String phone = phoneNumber.getData();
|
|
|
String openId = openIdData.getData();
|
|
|
sysUser.setOpenId(openId);
|
|
|
- sysUser.setPhonenumber(username);
|
|
|
+ sysUser.setPhonenumber(phone);
|
|
|
// 查询用户信息
|
|
|
R<LoginUser> userResult = remoteUserService.getUserByOpenId(sysUser, SecurityConstants.INNER);
|
|
|
|
|
|
@@ -226,15 +226,15 @@ public class SysLoginService
|
|
|
SysUser user = userResult.getData().getSysUser();
|
|
|
if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
|
|
{
|
|
|
- recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "对不起,您的账号已被删除");
|
|
|
- throw new ServiceException("对不起,您的账号:" + username + " 已被删除");
|
|
|
+ recordLogService.recordLogininfor(phone, Constants.LOGIN_FAIL, "对不起,您的账号已被删除");
|
|
|
+ throw new ServiceException("对不起,您的账号:" + phone + " 已被删除");
|
|
|
}
|
|
|
if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
|
|
{
|
|
|
- recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "用户已停用,请联系管理员");
|
|
|
- throw new ServiceException("对不起,您的账号:" + username + " 已停用");
|
|
|
+ recordLogService.recordLogininfor(phone, Constants.LOGIN_FAIL, "用户已停用,请联系管理员");
|
|
|
+ throw new ServiceException("对不起,您的账号:" + phone + " 已停用");
|
|
|
}
|
|
|
- recordLogService.recordLogininfor(username, Constants.LOGIN_SUCCESS, "登录成功");
|
|
|
+ recordLogService.recordLogininfor(phone, Constants.LOGIN_SUCCESS, "登录成功");
|
|
|
//recordLoginInfo(user.getUserId());
|
|
|
recordLoginInfoAndPolicy(user);
|
|
|
return userInfo;
|