wangwei 5 jaren geleden
bovenliggende
commit
7b4be67414

+ 4 - 4
src/main/java/cn/com/qmth/examcloud/bridge/modules/swjtu/controller/SwjtuController.java

@@ -60,17 +60,17 @@ public class SwjtuController {
 			throw new StatusException("001001", "rootOrgId is not configured");
 		}
 		if (StringUtils.isBlank(loginnameConf)) {
-			throw new StatusException("001001", "loginname is not configured");
+			throw new StatusException("001002", "loginname is not configured");
 		}
 		if (StringUtils.isBlank(passwordConf)) {
-			throw new StatusException("001002", "password is not configured");
+			throw new StatusException("001003", "password is not configured");
 		}
 
 		Long rootOrgId = null;
 		try {
 			rootOrgId = StringUtil.toLong(rootOrgIdString);
 		} catch (Exception e1) {
-			throw new StatusException("001001", "rootOrgId is not Long value");
+			throw new StatusException("001004", "rootOrgId is not Long value");
 		}
 
 		if (null == examId) {
@@ -78,7 +78,7 @@ public class SwjtuController {
 					"THIRD_PARTY_API_DEFAULT_EXAM_ID");
 			String value = orgPropertyCacheBean.getValue();
 			if (StringUtils.isBlank(value)) {
-				throw new StatusException("001002", "password is not configured");
+				throw new StatusException("001005", "examId is not configured");
 			}
 			examId = StringUtil.toLong(value);
 		}