|
|
@@ -1182,6 +1182,17 @@ void UncaughtExceptionHandler(NSException *exception) {
|
|
|
if(appDelegate.password!=nil)
|
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
|
|
|
|
+
|
|
|
+#if TARGET_IPHONE_SIMULATOR//模拟器
|
|
|
+ [params setValue:@"simulator_uuid" forKey:@"idfv"];
|
|
|
+#elif TARGET_OS_IPHONE//真机
|
|
|
+ UIDevice * dev = [UIDevice currentDevice];
|
|
|
+ NSUUID* uuid =dev.identifierForVendor;
|
|
|
+ [params setValue:uuid.UUIDString forKey:@"idfv"];
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
NSMutableURLRequest *request = [serializer multipartFormRequestWithMethod:@"POST" URLString:URL_UPLOAD_OFFLINE parameters:params constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
|
|
|
[formData appendPartWithFileData:data name:@"upfile" fileName:[upfile lastPathComponent] mimeType:@"application/zip"];
|