Selaa lähdekoodia

首页加入授权

wangliang 3 vuotta sitten
vanhempi
commit
1d05444d97

+ 4 - 3
distributed-print/src/main/java/com/qmth/distributed/print/api/SysController.java

@@ -100,9 +100,6 @@ public class SysController {
     @Resource
     TeachClazzService teachClazzService;
 
-    @Resource
-    TeachCourseService teachCourseService;
-
     @Resource
     BasicStudentService basicStudentService;
 
@@ -121,6 +118,9 @@ public class SysController {
     @Resource
     BasicExamService basicExamService;
 
+    @Resource
+    AuthInfoService authInfoService;
+
     /**
      * 登录
      *
@@ -375,6 +375,7 @@ public class SysController {
             if (Objects.isNull(basicSchool)) {
                 throw ExceptionResultEnum.SCHOOL_NO_DATA.exception();
             }
+            authInfoService.appHasExpired(code);
             Map<String, String> map = new HashMap<>();
             if (Objects.nonNull(basicSchool.getLogo()) && (!basicSchool.getLogo().startsWith("http") || !basicSchool.getLogo().startsWith("https"))) {
                 String hostUrl = SystemConstant.getLocalFileHost(dictionaryConfig.sysDomain().getFileHost());

+ 4 - 0
teachcloud-report/src/main/java/com/qmth/teachcloud/report/api/SysController.java

@@ -80,6 +80,9 @@ public class SysController {
     @Resource
     SysConfigService sysConfigService;
 
+    @Resource
+    AuthInfoService authInfoService;
+
     /**
      * 登录
      *
@@ -230,6 +233,7 @@ public class SysController {
             if (Objects.isNull(basicSchool)) {
                 throw ExceptionResultEnum.SCHOOL_NO_DATA.exception();
             }
+            authInfoService.appHasExpired(code);
             Map<String, String> map = new HashMap<>();
             if (Objects.nonNull(basicSchool.getLogo()) && (!basicSchool.getLogo().startsWith("http") || !basicSchool.getLogo().startsWith("https"))) {
                 String hostUrl = SystemConstant.getLocalFileHost(dictionaryConfig.sysDomain().getFileHost());