|
@@ -77,7 +77,9 @@ public class ZufeDataDockingUtil {
|
|
TSToken tsTokenDb = null;
|
|
TSToken tsTokenDb = null;
|
|
try {
|
|
try {
|
|
log.info("login is come in");
|
|
log.info("login is come in");
|
|
- this.commonValidate();
|
|
|
|
|
|
+ if (!this.commonValidate()) {
|
|
|
|
+ return tsTokenDb;
|
|
|
|
+ }
|
|
|
|
|
|
ImmutableMap params = new ImmutableMap.Builder<String, Object>().put("key", key)
|
|
ImmutableMap params = new ImmutableMap.Builder<String, Object>().put("key", key)
|
|
.put("secret", secret).build();
|
|
.put("secret", secret).build();
|
|
@@ -130,7 +132,9 @@ public class ZufeDataDockingUtil {
|
|
StringJoiner stringJoiner = new StringJoiner("");
|
|
StringJoiner stringJoiner = new StringJoiner("");
|
|
try {
|
|
try {
|
|
log.info("course is come in");
|
|
log.info("course is come in");
|
|
- this.commonValidate();
|
|
|
|
|
|
+ if (!this.commonValidate()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
int page = SystemConstant.MIN_QUERY_SIZE, perPage = SystemConstant.MAX_QUERY_SIZE;
|
|
int page = SystemConstant.MIN_QUERY_SIZE, perPage = SystemConstant.MAX_QUERY_SIZE;
|
|
Map<String, Object> params = Maps.newHashMap();
|
|
Map<String, Object> params = Maps.newHashMap();
|
|
@@ -244,7 +248,9 @@ public class ZufeDataDockingUtil {
|
|
StringJoiner stringJoiner = new StringJoiner("");
|
|
StringJoiner stringJoiner = new StringJoiner("");
|
|
try {
|
|
try {
|
|
log.info("exam is come in");
|
|
log.info("exam is come in");
|
|
- this.commonValidate();
|
|
|
|
|
|
+ if (!this.commonValidate()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
int page = SystemConstant.MIN_QUERY_SIZE, perPage = SystemConstant.MAX_QUERY_SIZE;
|
|
int page = SystemConstant.MIN_QUERY_SIZE, perPage = SystemConstant.MAX_QUERY_SIZE;
|
|
Map<String, Object> params = Maps.newHashMap();
|
|
Map<String, Object> params = Maps.newHashMap();
|
|
@@ -349,9 +355,9 @@ public class ZufeDataDockingUtil {
|
|
/**
|
|
/**
|
|
* 公共校验
|
|
* 公共校验
|
|
*/
|
|
*/
|
|
- public void commonValidate() {
|
|
|
|
|
|
+ public boolean commonValidate() {
|
|
authInfoService.appHasExpired(SCHOOL_CODE);
|
|
authInfoService.appHasExpired(SCHOOL_CODE);
|
|
BasicSchool basicSchool = commonCacheService.schoolCache(SCHOOL_CODE);
|
|
BasicSchool basicSchool = commonCacheService.schoolCache(SCHOOL_CODE);
|
|
- Objects.requireNonNull(basicSchool, "学校信息不存在");
|
|
|
|
|
|
+ return Objects.isNull(basicSchool) ? false : true;
|
|
}
|
|
}
|
|
}
|
|
}
|