浏览代码

加入系统授权配置

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