|
|
@@ -238,4 +238,43 @@ repeat:
|
|
|
return responseData;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
++(NSDictionary*)err_log:(NSString*) up_params result:(NSString*)result module:(NSString*) module code:(int) code//device:(NSString*) device
|
|
|
+{
|
|
|
+ // NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
+ // AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
+ // if(appDelegate.user!=nil)
|
|
|
+ // [params setValue:appDelegate.user forKey:@"user"];
|
|
|
+ //
|
|
|
+ // [params setValue:up_params forKey:@"upparam"];
|
|
|
+ //
|
|
|
+ // [params setValue:[NSNumber numberWithInt:code ] forKey:@"code"];
|
|
|
+ //
|
|
|
+ // [params setValue:result forKey:@"result"];
|
|
|
+ // [params setValue:module forKey:@"interfac"];
|
|
|
+ //
|
|
|
+ // [params setValue:[RAUtils base64en:[RAUtils dict2string: [RAUtils device_info]]] forKey:@"device"];
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // // [params setValue:module forKey:@"module"];
|
|
|
+ //
|
|
|
+ // // [[UIDevice currentDevice] name];
|
|
|
+ //
|
|
|
+ // // if(appDelegate.offline_mode)
|
|
|
+ // // {
|
|
|
+ // // return [OLDataProvider offline_notimpl];
|
|
|
+ // // }
|
|
|
+ // if(![self IsNetworkAvailable])
|
|
|
+ // return [RAUtils error_json:RESULT_NET_NOTAVAILABLE err_msg:nil];
|
|
|
+ //
|
|
|
+ // NSData* json=[self get_json:URL_ERR_LOG parameters:params];
|
|
|
+ // if(json==nil)
|
|
|
+ // return nil;
|
|
|
+ // NSError *error=nil;
|
|
|
+ // NSDictionary *jsobj = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableLeaves error:&error];
|
|
|
+ // return jsobj;
|
|
|
+ NSMutableDictionary* jsobj = [@{@"result":@"2"} mutableCopy];
|
|
|
+ return jsobj;
|
|
|
+}
|
|
|
+
|
|
|
@end
|