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
06954d7a
Commit
06954d7a
authored
Jun 25, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 一键登录反复切换问题修复
parent
60a45ede
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
config.gradle
config.gradle
+2
-6
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+12
-4
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+5
-2
No files found.
config.gradle
View file @
06954d7a
...
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.50.42"
,
"m-consultant"
:
"0.0.60.70"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.
55
"
,
"m-user"
:
"0.0.62.
61
"
,
"m-home"
:
"0.0.23.95"
,
"m-im"
:
"0.0.21.63"
,
"m-dynamic"
:
"0.0.7.74"
,
...
...
@@ -16,15 +16,11 @@ ext {
"m-muse"
:
"0.0.28.81"
,
"m-tests"
:
"0.0.24.18"
,
"m-course"
:
"0.0.43.39"
,
//-------------- 功能组件 --------------
//mdt 组件
"ydl-tuicore"
:
"0.0.25"
,
//第一步
"ydl-platform"
:
"0.0.41.44"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.94"
,
"ydl-media"
:
"0.0.21.52"
,
...
...
@@ -94,7 +90,7 @@ ext {
"m-confide"
:
"0.0.50.42"
,
"m-consultant"
:
"0.0.60.70"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.
55
"
,
"m-user"
:
"0.0.62.
61
"
,
"m-home"
:
"0.0.23.95"
,
"m-im"
:
"0.0.21.63"
,
"m-dynamic"
:
"0.0.7.74"
,
...
...
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
06954d7a
...
...
@@ -12,7 +12,6 @@ import android.view.View
import
android.widget.ImageView
import
android.widget.RelativeLayout
import
android.widget.TextView
import
com.blankj.utilcode.util.ToastUtils
import
com.mobile.auth.gatewayauth.*
import
com.mobile.auth.gatewayauth.model.TokenRet
import
com.ydl.ydlcommon.base.BaseActivity
...
...
@@ -131,10 +130,13 @@ object OneKeyLoginHelp {
*/
private
fun
toLoginActivity
()
{
if
(
mOpenPageIsSuccess
)
{
RegisterAndLoginActivity
.
start
(
mActivity
,
isFromOneKey
=
true
,
isFromGuide
=
fals
e
)
RegisterAndLoginActivity
.
start
(
mActivity
,
isFromOneKey
=
true
,
isFromGuide
=
mIsFromGuid
e
)
}
else
{
RegisterAndLoginActivity
.
start
(
mActivity
,
false
,
mIsFromGuide
)
}
if
(!
mIsFromGuide
)
{
quitLoginPage
()
}
}
/**
...
...
@@ -150,7 +152,10 @@ object OneKeyLoginHelp {
if
(
mOpenPageIsSuccess
)
{
RegisterAndLoginActivity
.
start
(
mActivity
)
}
else
{
RegisterAndLoginActivity
.
start
(
mActivity
,
isFromOneKey
=
false
,
isFromGuide
=
true
)
RegisterAndLoginActivity
.
start
(
mActivity
,
isFromOneKey
=
false
,
isFromGuide
=
!
isOpenDialog
)
}
if
(!
mIsFromGuide
)
{
quitLoginPage
()
}
}
}
...
...
@@ -630,7 +635,10 @@ object OneKeyLoginHelp {
if
(
mOpenPageIsSuccess
)
{
RegisterAndLoginActivity
.
start
(
context
)
}
else
{
RegisterAndLoginActivity
.
start
(
context
,
isFromOneKey
=
false
,
isFromGuide
=
true
)
RegisterAndLoginActivity
.
start
(
context
,
isFromOneKey
=
false
,
isFromGuide
=
!
isOpenDialog
)
}
if
(
isOpenDialog
)
{
quitLoginPage
()
}
}
}
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
06954d7a
...
...
@@ -113,7 +113,6 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
intent
.
putExtra
(
IS_FROM_GUIDE
,
isFromGuide
)
context
.
startActivity
(
intent
)
}
/**
* 注意:此方法仅限于启动页调用,其他页面不要调用此方法
*/
...
...
@@ -723,7 +722,11 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
super
.
onBackPressed
()
}
}
else
{
OneKeyLoginHelp
.
checkEnvAvailable
(
PhoneNumberAuthHelper
.
SERVICE_TYPE_LOGIN
)
if
(!
OneKeyLoginHelp
.
mIsFromGuide
)
{
finish
()
}
else
{
OneKeyLoginHelp
.
checkEnvAvailable
(
PhoneNumberAuthHelper
.
SERVICE_TYPE_LOGIN
)
}
super
.
onBackPressed
()
}
}
else
{
...
...
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