Commit e77c60aaf89887f8b4d4c9b11b23da7ad402ae07
1 parent
ce9184ae
no message
Showing
1 changed file
with
17 additions
and
1 deletions
Example/CNLiveQrCodeModule/CNLIVEAppDelegate.m
| ... | ... | @@ -17,13 +17,29 @@ |
| 17 | 17 | #import "CNLiveEnvironment.h" |
| 18 | 18 | |
| 19 | 19 | @implementation CNLIVEAppDelegate |
| 20 | +- (void)networkParamAction{ | |
| 21 | + NSMutableDictionary * mDict = [[NSMutableDictionary alloc] init]; | |
| 22 | + [mDict setValue:@"10514405" forKey:@"loginSid"]; | |
| 20 | 23 | |
| 24 | + [mDict setValue:BundleId forKey:@"platform_id"]; | |
| 25 | + | |
| 26 | + [mDict setValue:[[[[UIDevice currentDevice] identifierForVendor] UUIDString] stringByReplacingOccurrencesOfString:@"-" withString:@""] forKey:@"uuid"]; | |
| 27 | + [mDict setValue:@"i" forKey:@"plat"]; | |
| 28 | + [mDict setValue:@"1.7.8.19.10.30.15"forKey:@"ver"]; | |
| 29 | + [mDict setObject:AppId forKey:@"appId"]; | |
| 30 | + [CNLiveNetworking setupDefaultParam:mDict]; | |
| 31 | + [CNLiveNetworking setupShowResult:NO]; | |
| 32 | + [CNLiveNetworking setupSignKey:APPKey]; | |
| 33 | + [CNLiveNetworking setAllowRequestDefaultArgument:YES]; | |
| 34 | + [CNLiveNetworking setResponseSerializerType:CNLiveResponseSerializerJSON]; | |
| 35 | + | |
| 36 | +} | |
| 21 | 37 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
| 22 | 38 | { |
| 23 | 39 | // Override point for customization after application launch. |
| 24 | 40 | |
| 25 | 41 | [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore]; |
| 26 | -// [self networkParamAction]; | |
| 42 | + [self networkParamAction]; | |
| 27 | 43 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; |
| 28 | 44 | |
| 29 | 45 | CNLiveMyQrCodeController *vc = [[CNLiveMyQrCodeController alloc] init]; | ... | ... |