Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
a0681f68
Commit
a0681f68
authored
Apr 07, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 一键登录唤起后,又打开手机号登录问题修复
parent
a3bb5452
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
config.gradle
config.gradle
+2
-2
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+12
-5
No files found.
config.gradle
View file @
a0681f68
...
@@ -8,7 +8,7 @@ ext {
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.49.06"
,
"m-confide"
:
"0.0.49.06"
,
"m-consultant"
:
"0.0.59.68"
,
"m-consultant"
:
"0.0.59.68"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.2
6
"
,
"m-user"
:
"0.0.61.2
8
"
,
"m-home"
:
"0.0.22.59"
,
"m-home"
:
"0.0.22.59"
,
"m-im"
:
"0.0.18.48"
,
"m-im"
:
"0.0.18.48"
,
"m-dynamic"
:
"0.0.7.19"
,
"m-dynamic"
:
"0.0.7.19"
,
...
@@ -91,7 +91,7 @@ ext {
...
@@ -91,7 +91,7 @@ ext {
"m-confide"
:
"0.0.49.06"
,
"m-confide"
:
"0.0.49.06"
,
"m-consultant"
:
"0.0.59.68"
,
"m-consultant"
:
"0.0.59.68"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.2
6
"
,
"m-user"
:
"0.0.61.2
8
"
,
"m-home"
:
"0.0.22.59"
,
"m-home"
:
"0.0.22.59"
,
"m-im"
:
"0.0.18.48"
,
"m-im"
:
"0.0.18.48"
,
"m-dynamic"
:
"0.0.7.19"
,
"m-dynamic"
:
"0.0.7.19"
,
...
...
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
a0681f68
...
@@ -20,6 +20,7 @@ import com.meituan.android.walle.WalleChannelReader
...
@@ -20,6 +20,7 @@ import com.meituan.android.walle.WalleChannelReader
import
com.mobile.auth.gatewayauth.*
import
com.mobile.auth.gatewayauth.*
import
com.mobile.auth.gatewayauth.model.TokenRet
import
com.mobile.auth.gatewayauth.model.TokenRet
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.utils.JPushUtils
import
com.ydl.ydlcommon.utils.JPushUtils
...
@@ -430,7 +431,8 @@ object OneKeyLoginHelp {
...
@@ -430,7 +431,8 @@ object OneKeyLoginHelp {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
.
subscribe
({
if
(
it
.
code
==
200
)
{
if
(
it
.
code
==
200
)
{
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录成功"
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录成功"
)
ToastUtil
.
toastShort
(
"登录成功"
)
ToastUtil
.
toastShort
(
"登录成功"
)
saveUserData
(
it
.
data
)
saveUserData
(
it
.
data
)
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
...
@@ -464,12 +466,18 @@ object OneKeyLoginHelp {
...
@@ -464,12 +466,18 @@ object OneKeyLoginHelp {
LoginUtils
.
loginSuccessOperate
(
mActivity
)
LoginUtils
.
loginSuccessOperate
(
mActivity
)
}
}
}
else
{
}
else
{
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录失败 msg:${it.msg}"
)
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录失败 msg:${it.msg}"
)
ToastUtil
.
toastShort
(
it
.
msg
)
ToastUtil
.
toastShort
(
it
.
msg
)
mPhoneNumberAuthHelper
?.
hideLoginLoading
()
mPhoneNumberAuthHelper
?.
hideLoginLoading
()
}
}
},
{
},
{
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录Error msg:${it.message}"
)
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"一键登录Error msg:${it.message}"
)
ToastUtil
.
toastShort
(
it
.
message
)
ToastUtil
.
toastShort
(
it
.
message
)
mPhoneNumberAuthHelper
?.
hideLoginLoading
()
mPhoneNumberAuthHelper
?.
hideLoginLoading
()
})
})
...
@@ -603,9 +611,8 @@ object OneKeyLoginHelp {
...
@@ -603,9 +611,8 @@ object OneKeyLoginHelp {
}
}
}
}
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
finally
{
RegisterAndLoginActivity
.
start
(
context
)
RegisterAndLoginActivity
.
start
(
context
)
e
.
printStackTrace
()
}
}
}
}
...
...
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