File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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];
You can’t perform that action at this time.
0 commit comments