Commit 21976ffb authored by pete谢兆麟's avatar pete谢兆麟

一键登录逻辑修改

parent 340352a3
...@@ -111,13 +111,13 @@ extension YHOneKeyLoginManager { ...@@ -111,13 +111,13 @@ extension YHOneKeyLoginManager {
YHHUD.hide() YHHUD.hide()
if success { if success {
YHLoginManager.shared.loginSuccessActionBlock?() YHLoginManager.shared.loginSuccessActionBlock?()
if YHLoginManager.shared.userModel?.is_first_login == 1 { // if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController() // let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen // vc.modalPresentationStyle = .fullScreen
UIViewController.current?.navigationController?.pushViewController(vc) // UIViewController.current?.navigationController?.pushViewController(vc)
} else { // } else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true) TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
} // }
return return
} }
if let err = error { if let err = error {
......
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