Commit dc7990426aad22e67446ef6d1e37ccf7a55fe64f
1 parent
421a9b5f
提交0.0.30_加入测试环境口判别
Showing
3 changed files
with
8 additions
and
4 deletions
CNLiveServiceCenterModule.podspec
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])); | ... | ... |