Skip to content

Commit 8f93c95

Browse files
committed
uplog block add resume v2
1 parent 5a455c8 commit 8f93c95

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

QiniuSDK/Storage/QNPartsUpload.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,13 @@ - (void)reportBlock{
267267
[item setReportValue:@(self.file.size) forKey:QNReportBlockKeyFileSize];
268268
[item setReportValue:@([QNUtils getCurrentProcessID]) forKey:QNReportBlockKeyPid];
269269
[item setReportValue:@([QNUtils getCurrentThreadID]) forKey:QNReportBlockKeyTid];
270-
[item setReportValue:@(1) forKey:QNReportBlockKeyUpApiVersion];
270+
271+
if (self.config.resumeUploadVersion == QNResumeUploadVersionV1) {
272+
[item setReportValue:@(1) forKey:QNReportBlockKeyUpApiVersion];
273+
} else {
274+
[item setReportValue:@(2) forKey:QNReportBlockKeyUpApiVersion];
275+
}
276+
271277
[item setReportValue:[QNUtils getCurrentNetworkType] forKey:QNReportBlockKeyClientTime];
272278
[item setReportValue:[QNUtils systemName] forKey:QNReportBlockKeyOsName];
273279
[item setReportValue:[QNUtils systemVersion] forKey:QNReportBlockKeyOsVersion];

0 commit comments

Comments
 (0)