!165 记录登录信息状态值改为常量

Merge pull request !165 from mastery/my-ry-cloud
pull/166/head
若依 3 years ago committed by Gitee
commit 33694c860f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -148,11 +148,11 @@ public class SysLoginService
// 日志状态
if (StringUtils.equalsAny(status, Constants.LOGIN_SUCCESS, Constants.LOGOUT, Constants.REGISTER))
{
logininfor.setStatus("0");
logininfor.setStatus(Constants.LOGIN_SUCCESS_STATUS);
}
else if (Constants.LOGIN_FAIL.equals(status))
{
logininfor.setStatus("1");
logininfor.setStatus(Constants.LOGIN_FAIL_STATUS);
}
remoteLogService.saveLogininfor(logininfor, SecurityConstants.INNER);
}

@ -52,6 +52,16 @@ public class Constants
*/
public static final Integer FAIL = 500;
/**
*
*/
public static final String LOGIN_SUCCESS_STATUS = "1";
/**
*
*/
public static final String LOGIN_FAIL_STATUS = "0";
/**
*
*/

Loading…
Cancel
Save