mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 02:08:15 +08:00
update 优化超时时间判断
This commit is contained in:
parent
251622035f
commit
12136c3926
@ -257,8 +257,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
||||
MultipartVo multipartVo = new MultipartVo();
|
||||
|
||||
// 检查是否存在缓存,如果存在且超时时间在2小时内,则从缓存中获取上传信息
|
||||
long timeout = RedisUtils.getTimeToLive(osskey);
|
||||
if ((timeout < 0 ? timeout : timeout / 1000) > 60 * 60 * 2) {
|
||||
if (RedisUtils.getTimeToLive(osskey) > 60 * 60 * 2 * 1000) {
|
||||
multipartVo = RedisUtils.getCacheObject(osskey);
|
||||
|
||||
// 获取上传分段进度
|
||||
|
||||
Loading…
Reference in New Issue
Block a user