Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
080b8c80
Commit
080b8c80
authored
May 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 一键登录
parent
8f00a1d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
YHLoginMethodManager.swift
...sses/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
+12
-5
No files found.
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/M/YHLoginMethodManager.swift
View file @
080b8c80
...
@@ -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. 开始一键登录流程
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment