Commit 38f9bbe0b2275a3570614a6591ed8f6357dd242e
1 parent
ac92a256
0.6.4
Showing
4 changed files
with
7 additions
and
3 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/SearchView/View/CNWitnessSearchVideoCell.m
| ... | ... | @@ -94,7 +94,8 @@ |
| 94 | 94 | NSDictionary *dic = @{ |
| 95 | 95 | @"contentId":self.model.pid?self.model.pid:@"", |
| 96 | 96 | @"selected":self.model.tool.liked?@"true":@"false", |
| 97 | - @"model":self.model.model?self.model.model:@"" | |
| 97 | + @"model":self.model.model?self.model.model:@"", | |
| 98 | + @"isCurrent":@(YES) | |
| 98 | 99 | }; |
| 99 | 100 | [CNLiveClassifyJumpBridge requestWittnessLikeNotification:dic]; |
| 100 | 101 | } | ... | ... |
CNLiveVideoClassifyKit/Classes/SearchView/ViewController/CNWitnessSearchDetailController.m
| ... | ... | @@ -209,6 +209,9 @@ static NSString *const CNWitnessSearchPersonCellID = @"CNWitnessSearchPersonCell |
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | - (void)videoChangeWithParam:(NSNotification *)noti{ |
| 212 | + if ([noti.userInfo boolForKey:@"isCurrent"]) { | |
| 213 | + return; | |
| 214 | + } | |
| 212 | 215 | NSString *pid = [noti.userInfo objectForKey:@"contentId"]; |
| 213 | 216 | if ([self.videoIDArray containsObject:pid]) { |
| 214 | 217 | NSInteger index = [self.videoIDArray indexOfObject:pid]; | ... | ... |
Example/CNLiveVideoClassifyKit/CNLiveClassifyKitImpl.m
| ... | ... | @@ -109,6 +109,6 @@ |
| 109 | 109 | /// 点赞通知网页更新交互 |
| 110 | 110 | /// @param param 更新参数 |
| 111 | 111 | - (void)requestWittnessLikeNotification:(NSDictionary *)param{ |
| 112 | - | |
| 112 | + [[NSNotificationCenter defaultCenter] postNotificationName:@"WjjWitnessLikeStatusNotification" object:nil userInfo:param]; | |
| 113 | 113 | } |
| 114 | 114 | @end | ... | ... |