Skip to content

Commit 6823601

Browse files
author
yangsen
committed
change ctx expireAt: -2h
1 parent 58db7d9 commit 6823601

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

QiniuSDK/Storage/QNUploadBlock.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ - (BOOL)isValid {
6767
}
6868

6969
// 存在则有效期必须为过期
70-
return (self.expiredAt.doubleValue - 24*3600) > [[NSDate date] timeIntervalSince1970];
70+
return (self.expiredAt.doubleValue - 2*3600) > [[NSDate date] timeIntervalSince1970];
7171
}
7272

7373
- (BOOL)isCompleted{

QiniuSDK/Storage/QNUploadInfoV2.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ - (BOOL)isValid {
8686
return false;
8787
}
8888

89-
return (self.expireAt.doubleValue - 24*3600) > [[NSDate date] timeIntervalSince1970];
89+
return (self.expireAt.doubleValue - 2*3600) > [[NSDate date] timeIntervalSince1970];
9090
}
9191

9292
- (BOOL)reloadSource {

0 commit comments

Comments
 (0)