Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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
android
android_vedio
Commits
3b22fff6
Commit
3b22fff6
authored
Sep 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
f6439d7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
AlipayAuthManager.kt
...in/java/com/duben/dayplaylet/manager/AlipayAuthManager.kt
+8
-4
No files found.
video/app/src/main/java/com/duben/dayplaylet/manager/AlipayAuthManager.kt
View file @
3b22fff6
...
...
@@ -40,9 +40,7 @@ object AlipayAuthManager {
)
{
// 获取alipay_open_id,调支付时作为参数extern_token 的value
// 传入,则支付账户为该授权账户
UserManager
.
getInstance
().
alipaySet
=
true
println
(
"mcg -->>>>> authinfo="
+
JsonUtil
.
toJson
(
authResult
))
authListener
?.
authSuccess
()
commitAlipayAutoInfo
(
JsonUtil
.
toJson
(
authResult
))
}
else
{
// 其他状态值则为授权失败
...
...
@@ -63,11 +61,17 @@ object AlipayAuthManager {
.
call
(
baseApplication
.
loanService
.
reportAlipayMsg
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
override
fun
onError
(
e
:
Throwable
)
{
authListener
?.
authFail
(
"授权失败!"
)
}
override
fun
onNext
(
t
:
BaseResponse
<
Any
>)
{
if
(
t
.
status
==
200
)
{
UserManager
.
getInstance
().
alipaySet
=
true
authListener
?.
authSuccess
()
}
else
{
authListener
?.
authFail
(
t
.
message
)
}
}
})
}
...
...
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