Commit bf9585e1 authored by David黄金龙's avatar David黄金龙

删除 注册用户 第一次登录时的逻辑

parent d68fea25
......@@ -97,10 +97,6 @@ class YHCodeSueecssViewController: YHBaseViewController {
if let phone = self.phoneNumber {
// 登录接口需要加一个deviceToken参数
YHHUD.show(.progress(message: "登录中..."))
if phone.contains("15818743775") {
......@@ -180,14 +176,19 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
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)
self.dismiss(animated: true)
}
//20240927版本 登录时 不需要 特殊处理注册用户
// if YHLoginManager.shared.userModel?.is_first_login == 1 {
// let vc = YHUserInfoSettingViewController()
// vc.modalPresentationStyle = .fullScreen
// self.navigationController?.pushViewController(vc)
// } else {
// TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
// self.dismiss(animated: true)
// }
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true)
}
})
}
......
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