@@ -62,13 +62,9 @@ - (void)put {
6262 } else {
6363 fileName = @" ?" ;
6464 }
65-
6665 parameters[@" token" ] = _token.token ;
67-
6866 [parameters addEntriesFromDictionary: _option.params];
69-
7067 parameters[@" crc32" ] = [NSString stringWithFormat: @" %u " , (unsigned int )[QNCrc32 data: _data]];
71-
7268 QNInternalProgressBlock p = ^(long long totalBytesWritten, long long totalBytesExpectedToWrite) {
7369 float percent = (float )totalBytesWritten / (float )totalBytesExpectedToWrite;
7470 if (percent > 0.95 ) {
@@ -81,9 +77,7 @@ - (void)put {
8177 }
8278 _option.progressHandler (_key, percent);
8379 };
84-
8580 __block NSString *upHost = [_config.zone up: _token isHttps: _config.useHttps frozenDomain: nil ];
86-
8781 QNCompleteBlock complete = ^(QNResponseInfo *info, NSDictionary *resp) {
8882 if (info.isOK ) {
8983 _option.progressHandler (_key, 1.0 );
@@ -116,7 +110,6 @@ - (void)put {
116110 if (info.isConnectionBroken || info.needSwitchServer ) {
117111 thirdHost = [_config.zone up: _token isHttps: _config.useHttps frozenDomain: nextHost];
118112 }
119-
120113 QNCompleteBlock thirdComplete = ^(QNResponseInfo *info, NSDictionary *resp) {
121114 if (info.isOK ) {
122115 _option.progressHandler (_key, 1.0 );
@@ -133,7 +126,6 @@ - (void)put {
133126 withCancelBlock: _option.cancellationSignal
134127 withAccess: _access];
135128 };
136-
137129 [_httpManager multipartPost: nextHost
138130 withData: _data
139131 withParams: parameters
@@ -144,7 +136,6 @@ - (void)put {
144136 withCancelBlock: _option.cancellationSignal
145137 withAccess: _access];
146138 };
147-
148139 [_httpManager multipartPost: upHost
149140 withData: _data
150141 withParams: parameters
@@ -155,5 +146,4 @@ - (void)put {
155146 withCancelBlock: _option.cancellationSignal
156147 withAccess: _access];
157148}
158-
159149@end
0 commit comments