|
@@ -91,7 +91,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
PrivilegeRepo privilegeRepo;
|
|
|
|
|
|
@Autowired
|
|
|
- SystemPropertyService sysConfigService;
|
|
|
+ SystemPropertyService systemPropertyService;
|
|
|
|
|
|
@Autowired
|
|
|
SmsCodeService smsCodeService;
|
|
@@ -125,12 +125,12 @@ public class AuthServiceImpl implements AuthService {
|
|
|
if (AccountType.STUDENT_PHONE.equals(accountTypeEnum)
|
|
|
|| AccountType.STUDENT_IDENTITY_NUMBER.equals(accountTypeEnum)
|
|
|
|| AccountType.STUDENT_CODE.equals(accountTypeEnum)) {
|
|
|
- Boolean stuClientLoginLimit = (Boolean) sysConfigService.get("STU_CLIENT_LOGIN_LIMIT");
|
|
|
+ Boolean stuClientLoginLimit = (Boolean) systemPropertyService.get("STU_CLIENT_LOGIN_LIMIT");
|
|
|
if (stuClientLoginLimit) {
|
|
|
throw new StatusException("001505", "系统维护中... ...");
|
|
|
}
|
|
|
} else if (AccountType.COMMON_LOGIN_NAME.equals(accountTypeEnum)) {
|
|
|
- Boolean commonLoginLimit = (Boolean) sysConfigService.get("COMMON_LOGIN_LIMIT");
|
|
|
+ Boolean commonLoginLimit = (Boolean) systemPropertyService.get("COMMON_LOGIN_LIMIT");
|
|
|
if (commonLoginLimit) {
|
|
|
throw new StatusException("001506", "系统维护中... ...");
|
|
|
}
|
|
@@ -177,7 +177,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- String accessibleRootOrgIds = (String) sysConfigService.get("ACCESSIBLE_ROOT_ORG_LIST");
|
|
|
+ String accessibleRootOrgIds = (String) systemPropertyService.get("ACCESSIBLE_ROOT_ORG_LIST");
|
|
|
if (StringUtils.isNotBlank(accessibleRootOrgIds)) {
|
|
|
accessibleRootOrgIds = "," + accessibleRootOrgIds + ",";
|
|
|
if (!accessibleRootOrgIds.contains("," + rootOrg.getId() + ",")) {
|