Commit 550d2345 authored by Steven杜宇's avatar Steven杜宇

// 分享时判断登录状态

parent 59845980
......@@ -256,6 +256,15 @@ extension YHVideoPlayerVC {
}
func shareVideoContent() {
if YHLoginManager.shared.isLogin() == false {
self.player.pause()
let vc = UINavigationController(rootVC: YHPhoneLoginViewController())
vc.modalPresentationStyle = .custom
self.navigationController?.present(vc, animated: true)
return
}
let title: String = self.viewModel.mainModel?.title ?? ""
let link:String = self.viewModel.mainModel?.media_url ?? ""
let thumbUrl = self.viewModel.mainModel?.img_url ?? ""
......
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