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
e93ea665
Commit
e93ea665
authored
Jun 03, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 苹果登录
parent
5c18623b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
YHAppleLoginManager.swift
...sses/Modules/AppleLogin(苹果登录)/M/YHAppleLoginManager.swift
+12
-1
YHOneKeyLoginView.swift
...Classes/Modules/AutoLogin(一键登录)/V/YHOneKeyLoginView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/AppleLogin(苹果登录)/M/YHAppleLoginManager.swift
View file @
e93ea665
...
...
@@ -73,8 +73,19 @@ extension YHAppleLoginManager: ASAuthorizationControllerDelegate, ASAuthorizatio
}
func
authorizationController
(
controller
:
ASAuthorizationController
,
didCompleteWithError
error
:
Error
)
{
YHHUD
.
flash
(
message
:
"苹果登录失败 原因:
\(
error
.
localizedDescription
)
"
)
printLog
(
"Apple login FAILED:
\(
error
.
localizedDescription
)
"
)
if
error
is
ASAuthorizationError
{
let
err
=
error
as!
ASAuthorizationError
// 在这里处理 AuthenticationError
handleAuthenticationError
(
err
)
}
}
func
handleAuthenticationError
(
_
error
:
ASAuthorizationError
)
{
if
error
.
code
!=
.
canceled
{
// 非用户取消的错误
YHHUD
.
flash
(
message
:
"苹果登录失败 原因:
\(
error
.
localizedDescription
)
"
)
}
}
func
presentationAnchor
(
for
controller
:
ASAuthorizationController
)
->
ASPresentationAnchor
{
...
...
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/V/YHOneKeyLoginView.swift
View file @
e93ea665
...
...
@@ -69,7 +69,7 @@ class YHOneKeyLoginView: UIView {
lazy
var
loginSubTitleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"
手机号
首次登录自动注册"
label
.
text
=
"
用户
首次登录自动注册"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
label
.
textColor
=
UIColor
(
hex
:
0xffffff
,
alpha
:
0.8
)
return
label
...
...
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