Commit 2433376b2b6f0da90bdf0992e5fec40854ab4b99
1 parent
0e6f7146
0.5.4点赞
Showing
6 changed files
with
17 additions
and
4 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/Manager/CNLiveClassifyJumpBridge.h
| ... | ... | @@ -67,6 +67,9 @@ NS_ASSUME_NONNULL_BEGIN |
| 67 | 67 | /// @param currentIndex 当前选中 |
| 68 | 68 | /// @param dataList 视频数组 |
| 69 | 69 | + (void)openVideoPlayerVCWithCurrentIndex:(NSString *)currentIndex dataList:(NSArray *)dataList; |
| 70 | +/// 点赞通知网页更新交互 | |
| 71 | +/// @param param 更新参数 | |
| 72 | ++ (void)requestWittnessLikeNotification:(NSDictionary *)param; | |
| 70 | 73 | @end |
| 71 | 74 | |
| 72 | 75 | NS_ASSUME_NONNULL_END | ... | ... |
CNLiveVideoClassifyKit/Classes/Manager/CNLiveClassifyJumpBridge.m
| ... | ... | @@ -78,4 +78,8 @@ |
| 78 | 78 | + (void)openVideoPlayerVCWithCurrentIndex:(NSString *)currentIndex dataList:(NSArray *)dataList{ |
| 79 | 79 | [[CNLiveClassifyJumpBridge shareInstance].protocol openVideoPlayerVCWithCurrentIndex:currentIndex dataList:dataList]; |
| 80 | 80 | } |
| 81 | + | |
| 82 | ++ (void)requestWittnessLikeNotification:(NSDictionary *)param{ | |
| 83 | + [[CNLiveClassifyJumpBridge shareInstance].protocol requestWittnessLikeNotification:param]; | |
| 84 | +} | |
| 81 | 85 | @end | ... | ... |
CNLiveVideoClassifyKit/Classes/Manager/CNLiveVideoClassifyProtocol.h
| ... | ... | @@ -109,6 +109,9 @@ NS_ASSUME_NONNULL_BEGIN |
| 109 | 109 | /// @param currentIndex 当前选中 |
| 110 | 110 | /// @param dataList 视频数组 |
| 111 | 111 | - (void)openVideoPlayerVCWithCurrentIndex:(NSString *)currentIndex dataList:(NSArray *)dataList; |
| 112 | +/// 点赞通知网页更新交互 | |
| 113 | +/// @param param 更新参数 | |
| 114 | +- (void)requestWittnessLikeNotification:(NSDictionary *)param; | |
| 112 | 115 | @end |
| 113 | 116 | |
| 114 | 117 | NS_ASSUME_NONNULL_END | ... | ... |
CNLiveVideoClassifyKit/Classes/SearchView/View/CNWitnessSearchVideoCell.m
| ... | ... | @@ -96,8 +96,7 @@ |
| 96 | 96 | @"selected":self.model.tool.liked?@"true":@"false", |
| 97 | 97 | @"model":self.model.model?self.model.model:@"" |
| 98 | 98 | }; |
| 99 | - [[NSNotificationCenter defaultCenter] postNotificationName:@"WjjWitnessLikeStatusNotification" object:nil userInfo:dic]; | |
| 100 | - [[NSNotificationCenter defaultCenter] postNotificationName:@"Wjjh5WitnessLikeStatusNotification" object:nil userInfo:dic]; | |
| 99 | + [CNLiveClassifyJumpBridge requestWittnessLikeNotification:dic]; | |
| 101 | 100 | } |
| 102 | 101 | #pragma mark - Setting |
| 103 | 102 | - (void)setModel:(CNWitnessSearchDetailModel *)model{ | ... | ... |
Example/CNLiveVideoClassifyKit/CNLiveClassifyKitImpl.m
| ... | ... | @@ -106,5 +106,9 @@ |
| 106 | 106 | - (void)openVideoPlayerVCWithCurrentIndex:(NSString *)currentIndex dataList:(NSArray *)dataList{ |
| 107 | 107 | |
| 108 | 108 | } |
| 109 | - | |
| 109 | +/// 点赞通知网页更新交互 | |
| 110 | +/// @param param 更新参数 | |
| 111 | +- (void)requestWittnessLikeNotification:(NSDictionary *)param{ | |
| 112 | + | |
| 113 | +} | |
| 110 | 114 | @end | ... | ... |