Commit 3b5ad1784c8413c1a8114d8ebc321d3b32aa2a91
1 parent
ba7fa36b
no message
Showing
3 changed files
with
21 additions
and
3 deletions
CNLiveEnvironment/Classes/CNLiveEnvironmentManager.m
| ... | ... | @@ -76,7 +76,16 @@ |
| 76 | 76 | * 默认是测试商店版 |
| 77 | 77 | */ |
| 78 | 78 | + (void)load{ |
| 79 | +#ifdef DEBUG | |
| 80 | + //测试商店版 | |
| 79 | 81 | [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore]; |
| 82 | + | |
| 83 | +#else | |
| 84 | + //正式商店版 | |
| 85 | + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | |
| 86 | + | |
| 87 | +#endif | |
| 88 | + | |
| 80 | 89 | } |
| 81 | 90 | |
| 82 | 91 | /** | ... | ... |
Example/CNLiveEnvironment/XWAppDelegate.m
| ... | ... | @@ -14,7 +14,16 @@ |
| 14 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
| 15 | 15 | { |
| 16 | 16 | // Override point for customization after application launch. |
| 17 | - [CNLiveEnvironmentManager setEnvironment:CNLiveDebugInHouse]; | |
| 17 | + NSLog(@"%@",EnvironmentDesc); | |
| 18 | + NSLog(@"%@",ShareSDKAppId_Share); | |
| 19 | + NSLog(@"%d",TestEnvironment); | |
| 20 | + NSLog(@"%@",cn_API_Host(@"asd")); | |
| 21 | + NSLog(@"%@",AppId); | |
| 22 | + NSLog(@"%@",APPKey); | |
| 23 | + NSLog(@"%@",CNStockDarenVideoCallBackUrl); | |
| 24 | + NSLog(@"%@",CNGetWitnessCancelCollection); | |
| 25 | + NSLog(@"%@",cn_API_Host(@"/我爱中国")); | |
| 26 | + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | |
| 18 | 27 | NSLog(@"%@",EnvironmentDesc); |
| 19 | 28 | NSLog(@"%@",ShareSDKAppId_Share); |
| 20 | 29 | NSLog(@"%d",TestEnvironment); |
| ... | ... | @@ -27,7 +36,7 @@ |
| 27 | 36 | |
| 28 | 37 | |
| 29 | 38 | |
| 30 | - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | |
| 39 | + [CNLiveEnvironmentManager setEnvironment:CNLiveDebugInHouse]; | |
| 31 | 40 | // NSLog(@"%@",EnvironmentDesc); |
| 32 | 41 | // NSLog(@"%@",ShareSDKAppId_Share); |
| 33 | 42 | // NSLog(@"%d",TestEnvironment); | ... | ... |
Example/CNLiveEnvironment/XWViewController.m
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | { |
| 20 | 20 | [super viewDidLoad]; |
| 21 | 21 | // Do any additional setup after loading the view, typically from a nib. |
| 22 | - [CNLiveEnvironmentManager setEnvironment:CNLiveDebugInHouse]; | |
| 22 | + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | |
| 23 | 23 | NSLog(@"%@",CNStockDarenVideoCallBackUrl); |
| 24 | 24 | NSLog(@"%@",CNGetWitnessCancelCollection); |
| 25 | 25 | NSLog(@"%@",CNGetSpAddFollowsUrl); | ... | ... |