This commit is contained in:
wu736139669
2015-04-02 08:39:39 +08:00
parent b4e0a5ec5d
commit 821a5dbb77
54 changed files with 1997 additions and 88 deletions
+3 -3
View File
@@ -47,7 +47,7 @@
if (proper.requireType == HTTPRequestTypeWithGET) {
return [[XiaoYuAPIClient sharedClient] GET:[proper reqURL]
parameters:[proper url] ? [proper encodePro] : [proper pro]
parameters: [proper encodePro]
success:^(AFHTTPRequestOperation * __unused task, id json) {
DLog(@"%@", json);
@@ -87,7 +87,7 @@
}];
} else if(proper.requireType == HTTPRequestTypeWithPOST){
return [[XiaoYuAPIClient sharedClient] POST:[proper reqURL]
parameters:[proper url] ? [proper encodePro] : [proper pro]
parameters:[proper encodePro]
success:^(AFHTTPRequestOperation * __unused task, id JSON) {
DLog(@"%@", JSON);
@@ -112,7 +112,7 @@
}];
} else if(proper.requireType == HTTPRequestTypeWithPOSTDATA){
return [[XiaoYuAPIClient sharedClient] POST:[proper reqURL]
parameters:[proper url] ? [proper encodePro] : [proper pro]
parameters:[proper encodePro]
constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
for (int i = 0; i < proper.pFile.img.count; i++) {
UIImage *uploadImage = proper.pFile.img[i];