Commit a2fdc5db293ebd72ce066f75734d924ac45144b7
1 parent
4f03bd05
0.1.9
Showing
3 changed files
with
12 additions
and
7 deletions
CNLiveCServiceModule.podspec
CNLiveCServiceModule/Classes/View/CNLiveVideoRecommendCell.m
| ... | ... | @@ -85,13 +85,18 @@ |
| 85 | 85 | self.oldPrice.hidden = YES; |
| 86 | 86 | self.titleLabel.hidden = NO; |
| 87 | 87 | self.titleLabel.numberOfLines = 2; |
| 88 | - self.lookNum.hidden = NO; | |
| 89 | 88 | self.titleLabel.text = model.title; |
| 90 | - NSString *num = model.spectators; | |
| 91 | - if (num.floatValue > 10000) { | |
| 92 | - num = [NSString stringWithFormat:@"%.1f万",num.floatValue/10000]; | |
| 89 | + if ([model.spectators isNotBlank]) { | |
| 90 | + self.lookNum.hidden = NO; | |
| 91 | + NSString *num = model.spectators; | |
| 92 | + if (num.floatValue > 10000) { | |
| 93 | + num = [NSString stringWithFormat:@"%.1f万",num.floatValue/10000]; | |
| 94 | + } | |
| 95 | + [self.lookNum setTitle:[NSString stringWithFormat:@"%@浏览",num] forState:UIControlStateNormal]; | |
| 96 | + }else{ | |
| 97 | + self.lookNum.hidden = YES; | |
| 93 | 98 | } |
| 94 | - [self.lookNum setTitle:[NSString stringWithFormat:@"%@浏览",num] forState:UIControlStateNormal]; | |
| 99 | + | |
| 95 | 100 | [self.logoImage mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 96 | 101 | make.top.equalTo(self.contentView); |
| 97 | 102 | make.centerX.equalTo(self.contentView); | ... | ... |
Example/CNLiveCServiceModule/CNLIVEAppDelegate.m
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
| 19 | 19 | { |
| 20 | 20 | CNUserShareModel.uid = @"430783"; |
| 21 | - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | |
| 21 | + [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore]; | |
| 22 | 22 | [BHContext shareInstance].application = application; |
| 23 | 23 | [BHContext shareInstance].launchOptions = launchOptions; |
| 24 | 24 | [BHContext shareInstance].moduleConfigName = @"CNLiveBeeHive.bundle/BeeHive.bundle/BeeHive"; | ... | ... |