소스 검색

加入系统授权配置

wangliang 3 년 전
부모
커밋
626177be7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      distributed-print/src/main/java/com/qmth/distributed/print/api/TSAuthController.java

+ 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);