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

// 一键登录

parent b28cd000
...@@ -107,8 +107,13 @@ extension YHOneKeyLoginManager { ...@@ -107,8 +107,13 @@ extension YHOneKeyLoginManager {
YHHUD.hide() YHHUD.hide()
if success { if success {
YHLoginManager.shared.loginSuccessActionBlock?() YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功") if YHLoginManager.shared.userModel?.is_first_login == 1 {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true) let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
UIViewController.current?.navigationController?.pushViewController(vc)
} else {
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