Commit 8cc5283946496fd840b30842c06ed83751fa2b5e

Authored by zhangxiaowen
1 parent 87097d53

no message

CNLiveEnvironment/Classes/CNLiveEnvironmentManager.m
... ... @@ -92,18 +92,19 @@
92 92 * @param isEnvironment 环境
93 93 * @warning 必传参数
94 94 * 此方法环境默认为测试商店版,建议使用如下方法初始化.
95   - 必须在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
  95 + * 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
96 96 */
97 97 + (void)setEnvironment:(CNLiveEnvironmentType)isEnvironment{
98 98 CNLiveEnvironmentManager *manager = [CNLiveEnvironmentManager manager];
99 99 manager.isEnvironment = isEnvironment;
100 100 switch (isEnvironment) {
  101 +#pragma mark - 测试企业环境
101 102 case CNLiveEnvironmentDebugInHouse://测试企业环境
102 103 {
103 104 manager.isFormalEnvironment = NO;
104 105 manager.isTestEnvironment = YES;
105 106  
106   - manager.AppDownloadUrl = @"https://fir.im/layf";
  107 + manager.AppDownloadUrl = @"http://apiwjj.cnlive.com/download/index.html";
107 108 manager.ShareDarenHomeUrl = @"http://apiwjj.cnlive.com/download/index.html";
108 109 manager.WjjH5_Host = @"http://wjjh5test.cnlive.com";
109 110  
... ... @@ -152,6 +153,7 @@
152 153 }
153 154 break;
154 155  
  156 +#pragma mark - 正式企业环境
155 157 case CNLiveEnvironmentProductionInHouse://正式企业环境
156 158 {
157 159 manager.isFormalEnvironment = YES;
... ... @@ -205,12 +207,13 @@
205 207 }
206 208 break;
207 209  
  210 +#pragma mark - 测试商店环境
208 211 case CNLiveEnvironmentDebugAppStore://测试商店环境
209 212 {
210 213 manager.isFormalEnvironment = NO;
211 214 manager.isTestEnvironment = YES;
212 215  
213   - manager.AppDownloadUrl = @"https://fir.im/layf";
  216 + manager.AppDownloadUrl = @"http://apiwjj.cnlive.com/download/index.html";
214 217 manager.ShareDarenHomeUrl = @"http://apiwjj.cnlive.com/download/index.html";
215 218 manager.WjjH5_Host = @"http://wjjh5test.cnlive.com";
216 219  
... ... @@ -258,6 +261,7 @@
258 261 }
259 262 break;
260 263  
  264 +#pragma mark - 正式商店环境
261 265 case CNLiveEnvironmentProductionAppStore://正式商店环境
262 266 {
263 267 manager.isFormalEnvironment = YES;
... ...