From 1b73d5d0b495f2d643c2523e1b8399f925b4f702 Mon Sep 17 00:00:00 2001 From: liurenjie <liurenjie@yuan9.cn> Date: 星期六, 03 七月 2021 17:58:19 +0800 Subject: [PATCH] al --- BuWanVideo2.0/Recommend/MainBaseController.m | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/BuWanVideo2.0/Recommend/MainBaseController.m b/BuWanVideo2.0/Recommend/MainBaseController.m index d2cd820..42bee22 100644 --- a/BuWanVideo2.0/Recommend/MainBaseController.m +++ b/BuWanVideo2.0/Recommend/MainBaseController.m @@ -29,23 +29,20 @@ - (void)getHotSearch { if (![YTHsharedManger startManger].searchTitle || [[YTHsharedManger startManger].searchTitle isEqualToString:@""]) { - [[YTHNetInterface startInterface] getHotSerachWithUid:[YTHsharedManger startManger].Uid withSystem:@"1" withblock:^(BOOL isSuccessful, id result, NSString *error) { + [[YTHNetInterface startInterface] fetchHotSerchListWithUid:^(BOOL isSuccessful, id result, NSString *error) { if (isSuccessful) { NSDictionary *dic = (NSDictionary *)result; if (!_dataHot) { self.dataHot = [[NSMutableArray alloc] initWithCapacity:0]; } [self.dataHot removeAllObjects]; - NSArray *ar = [[dic objectForKey:@"Data"] objectForKey:@"data"]; + NSArray *ar = [[dic objectForKey:@"Data"] objectForKey:@"data"][@"鐑悳姒�"]; for (int i =0; i<ar.count; i++) { [self.dataHot addObject:[ar objectAtIndex:i]]; } NSInteger rand = arc4random()%self.dataHot.count ; self.viewRecommendNav.title = self.dataHot[rand]; [YTHsharedManger startManger].searchTitle = self.viewRecommendNav.title; - - } else { - } }]; -- Gitblit v1.8.0