Commit 1792406c authored by pete谢兆麟's avatar pete谢兆麟

去除设置逻辑

parent 1123ab9a
...@@ -203,15 +203,9 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -203,15 +203,9 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else { } else {
YHLoginManager.shared.loginSuccessActionBlock?() YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功") YHHUD.flash(message: "登录成功")
if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
self.navigationController?.pushViewController(vc)
} else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true) TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true) self.dismiss(animated: true)
} }
}
}) })
} }
...@@ -231,18 +225,13 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -231,18 +225,13 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else { } else {
YHLoginManager.shared.loginSuccessActionBlock?() YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功") YHHUD.flash(message: "登录成功")
if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
self?.navigationController?.pushViewController(vc)
} else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true) TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self?.dismiss(animated: true) self?.dismiss(animated: true)
} }
} }
} }
} }
}
func startTime() { func startTime() {
let sourceTimer = DispatchSource.makeTimerSource() let sourceTimer = DispatchSource.makeTimerSource()
......
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