Commit 6ad2b766e446f49a86fc04e09d7a66ec2f956510

Authored by yanglingyu
1 parent fe2e0c9e

闪退修改

CNLiveVideoClassifyKit.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveVideoClassifyKit' 10 s.name = 'CNLiveVideoClassifyKit'
11 - s.version = '0.0.11' 11 + s.version = '0.0.12'
12 s.summary = '视讯头部一二级菜单组件' 12 s.summary = '视讯头部一二级菜单组件'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveVideoClassifyKit/Classes/Controller/CNLiveClassifySegmentController.m
@@ -845,7 +845,9 @@ static CGFloat moveHeight = 50; @@ -845,7 +845,9 @@ static CGFloat moveHeight = 50;
845 if ([model.id isEqualToString:@"1"]) { 845 if ([model.id isEqualToString:@"1"]) {
846 time = 60; 846 time = 60;
847 } 847 }
848 - [CNLiveClassifyJumpBridge listViewRefreshWithVC:self.listContainerView.viewController pageType:model.pageType.integerValue param:paramDic refreshTime:time]; 848 + NSDictionary *controllers = self.listContainerView.validListDict;
  849 + CNLiveListController *list = controllers[@(self.ld_currentIndex)];
  850 + [CNLiveClassifyJumpBridge listViewRefreshWithVC:list.childViewControllers[0] pageType:model.pageType.integerValue param:paramDic refreshTime:time];
849 } 851 }
850 if (index != self.myCategoryView.selectedIndex) { 852 if (index != self.myCategoryView.selectedIndex) {
851 [[NSNotificationCenter defaultCenter] postNotificationName:WjjH5StopVideoPlayerNotification object:nil]; 853 [[NSNotificationCenter defaultCenter] postNotificationName:WjjH5StopVideoPlayerNotification object:nil];
CNLiveVideoClassifyKit/Classes/Controller/CNLiveSubSegmentController.m
@@ -373,7 +373,9 @@ @@ -373,7 +373,9 @@
373 if ([model.id isEqualToString:@"1"]) { 373 if ([model.id isEqualToString:@"1"]) {
374 time = 60; 374 time = 60;
375 } 375 }
376 - [CNLiveClassifyJumpBridge listViewRefreshWithVC:self.listContainerView.viewController pageType:model.pageType.integerValue param:paramDic refreshTime:time]; 376 + NSDictionary *controllers = self.listContainerView.validListDict;
  377 + CNLiveListController *list = controllers[@(self.ld_currentIndex)];
  378 + [CNLiveClassifyJumpBridge listViewRefreshWithVC:list.childViewControllers[0] pageType:model.pageType.integerValue param:paramDic refreshTime:time];
377 } 379 }
378 -(void)showGuideView 380 -(void)showGuideView
379 { 381 {
@@ -547,7 +549,9 @@ @@ -547,7 +549,9 @@
547 if ([model.id isEqualToString:@"1"]) { 549 if ([model.id isEqualToString:@"1"]) {
548 time = 60; 550 time = 60;
549 } 551 }
550 - [CNLiveClassifyJumpBridge listViewRefreshWithVC:self.listContainerView.viewController pageType:model.pageType.integerValue param:paramDic refreshTime:time]; 552 + NSDictionary *controllers = self.listContainerView.validListDict;
  553 + CNLiveListController *list = controllers[@(self.ld_currentIndex)];
  554 + [CNLiveClassifyJumpBridge listViewRefreshWithVC:list.childViewControllers[0] pageType:model.pageType.integerValue param:paramDic refreshTime:time];
551 [self showGuideView]; 555 [self showGuideView];
552 weakself 556 weakself
553 [self.bgImgView sd_setImageWithURL:[NSURL URLWithString:self.backImageH5] completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { 557 [self.bgImgView sd_setImageWithURL:[NSURL URLWithString:self.backImageH5] completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {