feat: PDF预览安全问题

This commit is contained in:
2024-07-25 18:19:24 +08:00
parent a31227e7a7
commit fba4fe61a6
3 changed files with 44 additions and 16 deletions
@@ -190,7 +190,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
re = loginService.srmsByToken(byTokenRequests.getUsername());
String token = re.getResult().get("token").toString();
String viewKey = token + "-X";
redisUtil.set(viewKey, token, 3600);
redisUtil.set(viewKey, token, 24 * 60 * 60);
}
return re;
} catch (Exception e) {