Bladeren bron

加入系统授权配置

wangliang 3 jaren geleden
bovenliggende
commit
626177be7b

+ 1 - 1
distributed-print/src/main/java/com/qmth/distributed/print/api/TSAuthController.java

@@ -84,7 +84,7 @@ public class TSAuthController {
             BasicSchool basicSchool = commonCacheService.schoolCache(schoolId);
             AuthOrgInfoDto authOrgInfoDto = commonCacheService.authInfoCache(basicSchool.getCode());
             if (Objects.nonNull(authOrgInfoDto) && Objects.nonNull(authOrgInfoDto.getControl())) {
-                expireTime = authOrgInfoDto.getControl().getExpireTime();
+                expireTime = Objects.nonNull(authOrgInfoDto.getControl().getExpireTime()) ? authOrgInfoDto.getControl().getExpireTime() : -1L;
             }
         }
         return ResultUtil.ok(expireTime);