Commit a4287355f1ae6c10d526e9ef8f41606c88ffc452

Authored by yanglingyu
1 parent 4f738ae2

0.7.1

CNLiveVideoClassifyKit.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveVideoClassifyKit'
11   - s.version = '0.7.0'
  11 + s.version = '0.7.1'
12 12 s.summary = '视讯头部一二级菜单组件'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveVideoClassifyKit/Classes/SearchView/ViewController/CNWitnessSearchDetailController.m
... ... @@ -17,8 +17,8 @@
17 17 #define WjjAttentionUserStatusToJSNotification @"WjjAttentionUserStatusToJSNotification"
18 18 #endif
19 19 //评论
20   -#ifndef WjjWitnessCommentStatusNotification
21   -#define WjjWitnessCommentStatusNotification @"WjjWitnessCommentStatusNotification"
  20 +#ifndef WjjWitnessCommentNumberUpdateNotification
  21 +#define WjjWitnessCommentNumberUpdateNotification @"WjjWitnessCommentNumberUpdateNotification"
22 22 #endif
23 23 //分享
24 24 #ifndef WjjWitnessShareNotification
... ... @@ -132,7 +132,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell
132 132 //关注
133 133 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoFocuseChange:) name:@"WjjAttentionUserStatusToJSNotification" object:nil];
134 134 //评论
135   - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoCommentsChange:) name:WjjWitnessCommentStatusNotification object:nil];
  135 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoCommentsChange:) name:WjjWitnessCommentNumberUpdateNotification object:nil];
136 136 //分享
137 137 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoShareChange:) name:WjjWitnessShareNotification object:nil];
138 138 //收藏
... ... @@ -196,7 +196,7 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell
196 196 if ([self.videoIDArray containsObject:pid]) {
197 197 NSInteger index = [self.videoIDArray indexOfObject:pid];
198 198 CNWitnessSearchDetailModel *model = self.dataSource[index];
199   - model.tool.commentsNum += 1;
  199 + model.tool.commentsNum = [noti.userInfo stringForKey:@"number"].integerValue;
200 200 }
201 201 }
202 202 - (void)videoFocuseChange:(NSNotification *)noti{
... ...