Skip to content

Commit 105647e

Browse files
committed
Banner 可能不需要跳转网页
1 parent 374e94e commit 105647e

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ - (void)refreshBanner{
171171
};
172172
_myTableView.tableHeaderView = _myBannersView;
173173
}
174-
// {
175-
// CodingBanner *tempB = [CodingBanner new];
176-
// tempB.id = @(3);
177-
// tempB.title = @"码市--技术变现,让赚钱更简单!";
178-
// tempB.image = @"https://dn-coding-net-production-static.qbox.me/985223b8-39fb-4553-a949-ec0fd1cb01f2.png";
179-
// tempB.link = @"https://mart.coding.net/";
180-
// tempB.name = @"码市";
181-
// _myBannersView.curBannerList = @[tempB, tempB];
182-
// }
183174
[[Coding_NetAPIManager sharedManager] request_BannersWithBlock:^(id data, NSError *error) {
184175
if (data) {
185176
weakSelf.myBannersView.curBannerList = data;
@@ -188,8 +179,7 @@ - (void)refreshBanner{
188179
}
189180

190181
- (void)goToBanner:(CodingBanner *)tapedBanner{
191-
WebViewController *vc = [WebViewController webVCWithUrlStr:tapedBanner.link];
192-
[self.navigationController pushViewController:vc animated:YES];
182+
[self analyseLinkStr:tapedBanner.link];
193183
}
194184

195185
#pragma mark UIMessageInputViewDelegate
@@ -214,7 +204,6 @@ - (void)messageInputView:(UIMessageInputView *)inputView heightToBottomChenged:(
214204
} completion:nil];
215205
}
216206

217-
218207
#pragma mark M
219208
- (Tweets *)getCurTweets{
220209
return [_tweetsDict objectForKey:[NSNumber numberWithInteger:_curIndex]];

0 commit comments

Comments
 (0)