|
|
@@ -53,7 +53,21 @@
|
|
|
NSDictionary *resultDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:nil];
|
|
|
return resultDic;
|
|
|
}
|
|
|
-
|
|
|
++(NSString*)download_query : (NSMutableDictionary*) params
|
|
|
+{
|
|
|
+ NSString *Path =nil;
|
|
|
+ Path=[[NSBundle mainBundle] pathForResource:@"download_query.xls" ofType:nil];
|
|
|
+
|
|
|
+ return Path;
|
|
|
+
|
|
|
+
|
|
|
+ // params[@"_operate"]=@"valid_upload";
|
|
|
+ AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
|
|
|
+
|
|
|
+ NSData *data = [self get_json:[self get_url:URL_QUERY] parameters:params file:nil];
|
|
|
+ NSDictionary *resultDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:nil];
|
|
|
+ return resultDic;
|
|
|
+}
|
|
|
|
|
|
+(NSData*)get_json : (NSString*) url parameters:(NSMutableDictionary *) params file:(NSString *) file //delegate:(id < NSURLConnectionDelegate >)delegate
|
|
|
{
|