Commit dc7990426aad22e67446ef6d1e37ccf7a55fe64f

Authored by 梁星国
1 parent 421a9b5f

提交0.0.30_加入测试环境口判别

CNLiveServiceCenterModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveServiceCenterModule'
11   - s.version = '0.0.29'
  11 + s.version = '0.0.30'
12 12 s.summary = '网家家企业端服务中心模块'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCenterHeaderView.m
... ... @@ -642,9 +642,13 @@
642 642 #pragma mark - ***事件实现***
643 643 - (void)tapAction:(UITapGestureRecognizer *)tap {
644 644  
645   - if (self.clickTestViewBlock) {
646   - self.clickTestViewBlock(self);
  645 + if (TestEnvironment) {
  646 + if (self.clickTestViewBlock) {
  647 + self.clickTestViewBlock(self);
  648 + }
647 649 }
  650 +
  651 +
648 652 }
649 653  
650 654  
... ...
Example/CNLiveServiceCenterModule/main.m
... ... @@ -13,7 +13,7 @@
13 13 int main(int argc, char * argv[])
14 14 {
15 15 @autoreleasepool {
16   - [CNLiveEnvironmentManager setAppType:CNLiveAppTypeBLive environmentType:CNLiveDebugAppStore];//CNLiveDebugAppStore//CNLiveProductionAppStore//CNLiveTestFlight
  16 + [CNLiveEnvironmentManager setAppType:CNLiveAppTypeBLive environmentType:CNLiveProductionAppStore];//CNLiveDebugAppStore//CNLiveProductionAppStore//CNLiveTestFlight
17 17  
18 18  
19 19 return UIApplicationMain(argc, argv, nil, NSStringFromClass([CNLIVEBAppDelegate class]));
... ...