mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-07 06:37:08 +00:00
new
This commit is contained in:
@@ -30,7 +30,17 @@
|
||||
// [key stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
||||
// NSDictionary *dic = @{@"mkey":key};
|
||||
|
||||
return _pro;
|
||||
NSMutableDictionary* dic;
|
||||
if (_pro) {
|
||||
dic = [NSMutableDictionary dictionaryWithDictionary:_pro];
|
||||
}else{
|
||||
dic = [NSMutableDictionary dictionary];
|
||||
}
|
||||
if ([AWordUser sharedInstance].isLogin && [AWordUser sharedInstance].uid) {
|
||||
[dic setObject:[AWordUser sharedInstance].uid forKey:@"uid"];
|
||||
|
||||
}
|
||||
return dic;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user