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

一键登录逻辑修改

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