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

微信第三方登录逻辑

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