Commit a2fdc5db293ebd72ce066f75734d924ac45144b7

Authored by yanglingyu
1 parent 4f03bd05

0.1.9

CNLiveCServiceModule.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveCServiceModule' 10 s.name = 'CNLiveCServiceModule'
11 - s.version = '0.0.38' 11 + s.version = '0.1.9'
12 s.summary = '我的服务内容' 12 s.summary = '我的服务内容'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveCServiceModule/Classes/View/CNLiveVideoRecommendCell.m
@@ -85,13 +85,18 @@ @@ -85,13 +85,18 @@
85 self.oldPrice.hidden = YES; 85 self.oldPrice.hidden = YES;
86 self.titleLabel.hidden = NO; 86 self.titleLabel.hidden = NO;
87 self.titleLabel.numberOfLines = 2; 87 self.titleLabel.numberOfLines = 2;
88 - self.lookNum.hidden = NO;  
89 self.titleLabel.text = model.title; 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 [self.logoImage mas_remakeConstraints:^(MASConstraintMaker *make) { 100 [self.logoImage mas_remakeConstraints:^(MASConstraintMaker *make) {
96 make.top.equalTo(self.contentView); 101 make.top.equalTo(self.contentView);
97 make.centerX.equalTo(self.contentView); 102 make.centerX.equalTo(self.contentView);
Example/CNLiveCServiceModule/CNLIVEAppDelegate.m
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
19 { 19 {
20 CNUserShareModel.uid = @"430783"; 20 CNUserShareModel.uid = @"430783";
21 - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; 21 + [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore];
22 [BHContext shareInstance].application = application; 22 [BHContext shareInstance].application = application;
23 [BHContext shareInstance].launchOptions = launchOptions; 23 [BHContext shareInstance].launchOptions = launchOptions;
24 [BHContext shareInstance].moduleConfigName = @"CNLiveBeeHive.bundle/BeeHive.bundle/BeeHive"; 24 [BHContext shareInstance].moduleConfigName = @"CNLiveBeeHive.bundle/BeeHive.bundle/BeeHive";