Commit 340352a3 authored by Alex朱枝文's avatar Alex朱枝文

进预告页增加登录状态判断

parent e5b891b3
...@@ -94,6 +94,11 @@ extension YHlifeCollectionReusableView: UITableViewDelegate, UITableViewDataSour ...@@ -94,6 +94,11 @@ extension YHlifeCollectionReusableView: UITableViewDelegate, UITableViewDataSour
return return
} }
let model = dataSource[indexPath.row] let model = dataSource[indexPath.row]
if !YHLoginManager.shared.isLogin() {
printLog("需要登录")
YHOneKeyLoginManager.shared.oneKeyLogin()
return
}
YHHUD.show(.progress(message: "加载中...")) YHHUD.show(.progress(message: "加载中..."))
viewModel.getLiveStatus(liveId: model.live_id) { liveInfo, _ in viewModel.getLiveStatus(liveId: model.live_id) { liveInfo, _ in
YHHUD.hide() YHHUD.hide()
......
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