Commit f2ab1260 authored by Steven杜宇's avatar Steven杜宇

// 删除不必要的浏览请求

parent 77c1c514
...@@ -339,15 +339,10 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource { ...@@ -339,15 +339,10 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource {
let model = items[indexPath.section] let model = items[indexPath.section]
if model.type == 1 { // 视频 if model.type == 1 { // 视频
if !model.media_url.isEmpty, let url = URL(string: model.media_url) { if !model.media_url.isEmpty, let url = URL(string: model.media_url) {
let vc = YHVideoPlayerVC() let vc = YHVideoPlayerVC()
vc.url = model.media_url vc.url = model.media_url
vc.id = model.id vc.id = model.id
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
DispatchQueue.main.async {
self.homeViewModel.getWebDetail(model.id) { success, error in
}
}
} }
return return
} }
......
...@@ -102,11 +102,6 @@ extension YHHomeCollectionViewCell { ...@@ -102,11 +102,6 @@ extension YHHomeCollectionViewCell {
self.updataSubViews() self.updataSubViews()
} }
self.parentViewController?.navigationController?.pushViewController(vc) self.parentViewController?.navigationController?.pushViewController(vc)
DispatchQueue.main.async {
self.viewModel.getWebDetail(listModel.id) { success, error in
}
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment