Commit bb90d7598be9802757fd858378cf6e7e77e51316

Authored by yanglingyu
1 parent e2600ae4

修复闪退

CNLiveCServiceModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveCServiceModule'
11   - s.version = '0.0.10'
  11 + s.version = '0.0.11'
12 12 s.summary = '我的服务内容'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveCServiceModule/Classes/Present/CNLiveServicePresent.m
... ... @@ -167,7 +167,7 @@ static const CGFloat margin = 15;
167 167 for (int i = 0; i< array.count ;i++ ) {
168 168 NSDictionary *dic = array[i];
169 169 NSObject *model = nil;
170   - if ([title isEqualToString:@""]) {
  170 + if ([title isEqualToString:@""] && [subTitle isEqualToString:@""]) {
171 171 model = [CNCategoryModel mj_objectWithKeyValues:dic];
172 172 }else{
173 173 model = [CNLiveSearchModel mj_objectWithKeyValues:dic];
... ...