Commit 6dca44b7 authored by pete谢兆麟's avatar pete谢兆麟

微信第三方登录逻辑

parent e70fb8e5
...@@ -336,11 +336,15 @@ class YHOtherLoginViewController: YHBaseViewController { ...@@ -336,11 +336,15 @@ class YHOtherLoginViewController: YHBaseViewController {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true) TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.navigationController?.popToRootViewController(animated: true) self.navigationController?.popToRootViewController(animated: true)
} else { } else {
//第一次微信登录跳转逻辑 if error?.errorCode == 30001 {
let vc = YHOtherLoginViewController() //第一次微信登录跳转逻辑
vc.type = .wechat let vc = YHOtherLoginViewController()
vc.token = unionId vc.type = .wechat
navigationController?.pushViewController(vc) vc.token = unionId
navigationController?.pushViewController(vc)
} else {
YHHUD.flash(message: error?.errorMsg ?? "")
}
} }
} }
} }
......
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