Browse Source

西安交通大学测试数据修改

wangliang 2 years ago
parent
commit
d823c54d89

+ 4 - 0
xjtu-exchange/src/main/java/com/qmth/xjtu/api/OpenApiController.java

@@ -62,6 +62,10 @@ public class OpenApiController {
                                @ApiParam(value = "用户类型") @RequestParam(required = false) String userType,
                                @ApiParam(value = "员工工号") @RequestParam(required = false) String employeeNo,
                                @ApiParam(value = "返回url") @RequestParam(required = false) String returnUrl) throws IOException {
+        if ((Objects.isNull(code) || Objects.equals(code, ""))
+                || (Objects.isNull(employeeNo) || Objects.equals(employeeNo, ""))) {
+            throw ExceptionResultEnum.ERROR.exception("请先通过学校地址登录");
+        }
         String schoolCode = "xjtu";//测试学校code,正式改成xjtu
         authInfoService.appHasExpired(schoolCode);