Commit a4287355f1ae6c10d526e9ef8f41606c88ffc452
1 parent
4f738ae2
0.7.1
Showing
2 changed files
with
5 additions
and
5 deletions
CNLiveVideoClassifyKit.podspec
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{ | ... | ... |