| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aac7c76 commit c41cca5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -152,6 +152,9 @@ - (Coding_DownloadTask *)addDownloadTaskWithPath:(NSString *)downloadPath | |||
| 152 | 152 | diskFileName:(NSString *)diskFileName | |
| 153 | 153 | storage_key:(NSString *)storage_key | |
| 154 | 154 | completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandler{ | |
| 155 | + | ||
| 156 | + [MobClick endEvent:kUmeng_Event_Request_ActionOfServer label:@"下载文件"]; | ||
| 157 | + | ||
| 155 | 158 | NSProgress *progress; | |
| 156 | 159 | NSURL *downloadURL = [NSURL URLWithString:downloadPath]; | |
| 157 | 160 | NSURLRequest *request = [NSURLRequest requestWithURL:downloadURL]; | |
@@ -258,6 +261,8 @@ - (Coding_UploadTask *)addUploadTaskWithFileName:(NSString *)fileName projectIsP | |||
| 258 | 261 | [formData appendPartWithFileURL:filePathUrl name:@"file" fileName:name mimeType:@"image/jpeg, image/png, image/gif" error:nil]; | |
| 259 | 262 | } error:nil]; | |
| 260 | 263 | ||
| 264 | + [MobClick endEvent:kUmeng_Event_Request_ActionOfServer label:@"上传文件"]; | ||
| 265 | + | ||
| 261 | 266 | NSProgress *progress = nil; | |
| 262 | 267 | NSURLSessionUploadTask *uploadTask = [self.af_manager uploadTaskWithStreamedRequest:request progress:&progress completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { | |
| 263 | 268 | Coding_FileManager *manager = [Coding_FileManager sharedManager]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments