Commit 125383a2 authored by Steven杜宇's avatar Steven杜宇

// 一键登录防止重复点击

parent 97149858
...@@ -40,6 +40,7 @@ extension YHOneKeyLoginManager { ...@@ -40,6 +40,7 @@ extension YHOneKeyLoginManager {
// 进入App自己设计的主登录界面 // 进入App自己设计的主登录界面
// @param isFromOneKeyPage:是否是从一键登录界面进入 // @param isFromOneKeyPage:是否是从一键登录界面进入
func enterAppNativeLoginPage(isFromOneKeyPage:Bool) { func enterAppNativeLoginPage(isFromOneKeyPage:Bool) {
self.isLoginEnabled = true
if isFromOneKeyPage { if isFromOneKeyPage {
let vc = YHOtherLoginViewController() let vc = YHOtherLoginViewController()
UIViewController.current?.navigationController?.pushViewController(vc, animated:true) UIViewController.current?.navigationController?.pushViewController(vc, animated:true)
...@@ -48,7 +49,6 @@ extension YHOneKeyLoginManager { ...@@ -48,7 +49,6 @@ extension YHOneKeyLoginManager {
let vc = UINavigationController(rootVC: YHOtherLoginViewController()) let vc = UINavigationController(rootVC: YHOtherLoginViewController())
vc.modalPresentationStyle = .fullScreen vc.modalPresentationStyle = .fullScreen
UIViewController.current?.present(vc, animated: true) UIViewController.current?.present(vc, animated: true)
self.isLoginEnabled = true
} }
func getSDKVersion() -> String { func getSDKVersion() -> String {
......
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