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
2898a61a
Commit
2898a61a
authored
May 31, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 登录
parent
b404779f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
YHOneKeyLoginManager.swift
...sses/Modules/AutoLogin(一键登录)/M/YHOneKeyLoginManager.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/M/YHOneKeyLoginManager.swift
View file @
2898a61a
...
@@ -22,7 +22,7 @@ extension YHOneKeyLoginManager {
...
@@ -22,7 +22,7 @@ extension YHOneKeyLoginManager {
YHOneKeyLoginManager
.
shared
.
checkIsSupportOneKeyLogin
{
YHOneKeyLoginManager
.
shared
.
checkIsSupportOneKeyLogin
{
support
in
support
in
if
!
support
{
if
!
support
{
YHHUD
.
flash
(
message
:
"不支持一键登录"
)
printLog
(
"不支持一键登录"
)
// 跳转APP自定义登录界面
// 跳转APP自定义登录界面
self
.
enterAppNativeLoginPage
(
isFromOneKeyPage
:
false
)
self
.
enterAppNativeLoginPage
(
isFromOneKeyPage
:
false
)
return
return
...
@@ -140,8 +140,8 @@ extension YHOneKeyLoginManager {
...
@@ -140,8 +140,8 @@ extension YHOneKeyLoginManager {
}
}
printLog
(
"oneKeyLogin token:
\(
token
)
"
)
printLog
(
"oneKeyLogin token:
\(
token
)
"
)
// 下面用Token去服务器登录
// 下面用Token去服务器登录
YHHUD
.
show
(
.
progress
(
message
:
"登录中..."
))
if
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
.
isEmpty
{
if
YHLoginManager
.
shared
.
deviceTokenModel
.
registerId
.
isEmpty
{
YHHUD
.
show
(
.
progress
(
message
:
"登录中..."
))
JPUSHService
.
registrationIDCompletionHandler
{
JPUSHService
.
registrationIDCompletionHandler
{
resCode
,
registrationID
in
resCode
,
registrationID
in
YHHUD
.
hide
()
YHHUD
.
hide
()
...
...
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