Commit 080b8c80 authored by Steven杜宇's avatar Steven杜宇

// 一键登录

parent 8f00a1d6
...@@ -12,13 +12,22 @@ import AVFoundation ...@@ -12,13 +12,22 @@ import AVFoundation
class YHLoginMethodManager { class YHLoginMethodManager {
static let shared = YHLoginMethodManager() static let shared = YHLoginMethodManager()
} }
extension YHLoginMethodManager { extension YHLoginMethodManager {
func autoLogin() {
YHLoginMethodManager.shared.checkIsSupportAutoLogin {
support in
if !support {
YHHUD.flash(message: "不支持一键登录")
// 跳转APP自定义登录界面
return
}
YHLoginMethodManager.shared.enterAutoLoginPage()
}
}
func getSDKVersion() -> String { func getSDKVersion() -> String {
return TXCommonHandler.sharedInstance().getVersion() return TXCommonHandler.sharedInstance().getVersion()
} }
...@@ -27,7 +36,6 @@ extension YHLoginMethodManager { ...@@ -27,7 +36,6 @@ extension YHLoginMethodManager {
TXCommonHandler.sharedInstance().setAuthSDKInfo(YhConstant.Alipay.kAliLoginSecretKey) { TXCommonHandler.sharedInstance().setAuthSDKInfo(YhConstant.Alipay.kAliLoginSecretKey) {
dict in dict in
printLog(dict) printLog(dict)
} }
} }
...@@ -44,7 +52,6 @@ extension YHLoginMethodManager { ...@@ -44,7 +52,6 @@ extension YHLoginMethodManager {
} }
} }
func enterAutoLoginPage() { func enterAutoLoginPage() {
// 3. 开始一键登录流程 // 3. 开始一键登录流程
......
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