expland expired time to fix url expired issue #214 #207 #208

This commit is contained in:
tickstep 2022-12-27 10:06:19 +08:00
parent 0acd6a43d6
commit 70ddb7e0c1

View File

@ -55,7 +55,7 @@ func IsUrlExpired(urlStr string) bool {
}
expiredTimeSecStr := u.Query().Get("x-oss-expires")
expiredTimeSec, _ := strconv.ParseInt(expiredTimeSecStr, 10, 64)
if (expiredTimeSec - time.Now().Unix()) <= 10 { // 小于10秒
if (expiredTimeSec - time.Now().Unix()) <= 300 { // 小于5分钟
// expired
return true
}