账号不存在提示修改

This commit is contained in:
gaoqr
2026-06-10 17:49:22 +08:00
parent 90d5284486
commit d75a737187
5 changed files with 5 additions and 4 deletions
@@ -19,6 +19,7 @@ public class ErrorCodeConstants {
public static final ErrorCode AUTH_MOBILE_NOT_EXISTS = new ErrorCode(1_002_000_006, "auth.mobile.not_exists");
public static final ErrorCode AUTH_MOBILE_NO_CHANGE = new ErrorCode(1_002_000_007, "auth.mobile.no_change");
public static final ErrorCode AUTH_MANAGEENDPOINT_LOGIN_PERMISSION_ERROR = new ErrorCode(1_002_000_008, "auth.manage_endpoint.login_permission_error");
public static final ErrorCode AUTH_LOGIN_USER_NOT_EXISTS = new ErrorCode(1_002_000_009, "auth.login.user.not.exist");
// ========== 菜单模块 1-002-001-000 ==========
public static final ErrorCode MENU_NAME_DUPLICATE = new ErrorCode(1_002_001_000, "menu.name.duplicate");
@@ -125,7 +125,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
// 校验用户是否存在
if (user == null) {
createLoginLog(null, username, null, null, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
throw new ServiceException(ErrorCodeConstants.AUTH_LOGIN_BAD_CREDENTIALS);
throw new ServiceException(ErrorCodeConstants.AUTH_LOGIN_USER_NOT_EXISTS);
}
Long organId = user.getOrganId();
// 校验机构有效性
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long