Commit 51f16fa98c9c8a3f7789b916ee24c42a16d652be

Authored by 梁星国
1 parent 7f95e0f0

提交

Example/CNLiveOrganizationValidationModule/CNLIVEBAppDelegate.m
... ... @@ -51,48 +51,29 @@ static NSString * uuid;
51 51 {
52 52 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
53 53 }
54   -
55 54 - (void)networkParamAction {
56 55  
57   -// [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:TestEnvironment];
58   -
59   - NSDictionary *dic = @{
60   - @"appId":@"769_k8gs9gcq47",
61   - @"clientPlat" :@"i",
62   - @"loginSid" : @"10514333",
63   - @"plat" : @"i",
64   - @"platform_id" : @"com.cnlive.CNLiveNetPlusBusiness",
65   - @"sid" : @"10514333",
66   - @"sign" : @"9F21AFCB66719D83BF0F421B298761952EB88D7F",
67   - @"timestamp" : @"1587532123",
68   - @"token" : @"BpKDrdmPSBV9DeOaNGn2WvBgxDgw4wRlvyb6eofc3nv179rtwr5BnnmmJyhKGpkj",
69   - @"uid" : @"10514333",
70   - @"uuid" : @"D0E07F062CDB4907BB6428C889199415",
71   - @"ver" : @"1.0.0.20.04.16.11"
72   - };
73   -
74   -
75   -
76   -// NSMutableDictionary * mDict = [[NSMutableDictionary alloc] init];
77   -// [mDict setValue:@"10514575" forKey:@"loginSid"];
78   -// [mDict setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey:@"platform_id"];
79   -// [mDict setValue:[self appUUIDString] forKey:@"uuid"];
80   -// [mDict setValue:@"i" forKey:@"plat"];
81   -// [mDict setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] forKey:@"ver"];
82   -// [mDict setObject:@"769_k8gs9gcq47" forKey:@"appId"];
83   -
84   - [CNLiveNetworking setupDefaultParam:dic];
  56 +// [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:TestEnvironment];
  57 +//
  58 +//
  59 + NSMutableDictionary * mDict = [[NSMutableDictionary alloc] init];
  60 + [mDict setValue:@"10514333" forKey:@"loginSid"];
  61 + [mDict setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey:@"platform_id"];
  62 + [mDict setValue:[self appUUIDString] forKey:@"uuid"];
  63 + [mDict setValue:@"i" forKey:@"plat"];
  64 + [mDict setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] forKey:@"ver"];
  65 + [mDict setObject:@"802_k8ho7qks68" forKey:@"appId"];
  66 + [CNLiveNetworking setupDefaultParam:mDict];
85 67 [CNLiveNetworking setupShowResult:NO];
86 68 [CNLiveNetworking setupSignKey:APPKey];
87 69 NSLog(@"打印appkey%@",APPKey);
88 70 [CNLiveNetworking setAllowRequestDefaultArgument:YES];
89 71 [CNLiveNetworking setResponseSerializerType:CNLiveResponseSerializerJSON];
90   -
91 72  
92 73 CNUserShareModel.faceUrl = @"http://yweb0.cnliveimg.com/images/headImg/2019/1211/1576034177571_small.jpg";
93 74 CNUserShareModel.nickname = @"";
94 75 CNUserShareModel.mobile = @"15027621766";
95   - CNUserShareModel.uid = @"10514531";
  76 + CNUserShareModel.uid = @"10514506";
96 77  
97 78 }
98 79 - (NSString *)appUUIDString
... ... @@ -104,4 +85,5 @@ static NSString * uuid;
104 85 return uuid;
105 86 }
106 87  
  88 +
107 89 @end
... ...
Example/CNLiveOrganizationValidationModule/CNLIVEBViewController.m
... ... @@ -61,7 +61,6 @@
61 61 NSString *strUrl = CNLiveBOrganizationValidattionStatusUrl;
62 62 NSDictionary *dict = @{
63 63 @"sid": [NSString stringWithFormat:@"%@",CNUserShareModel.uid],
64   - @"sign":@""
65 64 };
66 65  
67 66 [CNLiveNetworking setAllowRequestDefaultArgument:YES];
... ...