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
09d9bf6a
Commit
09d9bf6a
authored
Apr 11, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:未登录情况点击导医直接跳转
parent
fd7f9a0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
config.gradle
config.gradle
+2
-2
LoginUtils.kt
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
+4
-1
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+1
-1
No files found.
config.gradle
View file @
09d9bf6a
...
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.49.53"
,
"m-consultant"
:
"0.0.60.10"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.9
6
"
,
"m-user"
:
"0.0.61.9
8
"
,
"m-home"
:
"0.0.22.87"
,
"m-im"
:
"0.0.21.18"
,
"m-dynamic"
:
"0.0.7.35"
,
...
...
@@ -92,7 +92,7 @@ ext {
"m-confide"
:
"0.0.49.52"
,
"m-consultant"
:
"0.0.60.10"
,
"m-fm"
:
"0.0.30.07"
,
"m-user"
:
"0.0.61.9
6
"
,
"m-user"
:
"0.0.61.9
8
"
,
"m-home"
:
"0.0.22.87"
,
"m-im"
:
"0.0.21.18"
,
"m-dynamic"
:
"0.0.7.35"
,
...
...
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
View file @
09d9bf6a
...
...
@@ -102,6 +102,7 @@ object LoginUtils {
@JvmStatic
fun
logoutClearLocal
()
{
logingCallBackListener
=
null
AliYunRichLogsHelper
.
getInstance
().
sendRichLog
(
AliYunLogConfig
.
LOGIN
,
"退出登录"
)
UserIn
.
imLogout
()
UserIn
.
closePlayer
()
...
...
@@ -111,7 +112,9 @@ object LoginUtils {
@JvmStatic
fun
loginSuccessOperate
(
activity
:
Activity
)
{
logingCallBackListener
?.
loginSuccess
()
if
(
logingCallBackListener
!=
null
){
logingCallBackListener
?.
loginSuccess
()
}
// 登录成功后,如果一键登录界面没有关闭,则关闭掉
OneKeyLoginHelp
.
quitLoginPage
()
val
size
=
ActivityManager
.
getActivitySize
()
...
...
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
09d9bf6a
...
...
@@ -599,8 +599,8 @@ object OneKeyLoginHelp {
* @return true:登录。false:未登录
* */
fun
startLoginByStatusLoginCallBack
(
context
:
Context
,
isOpenDialog
:
Boolean
,
listener
:
LoginCallBackListener
)
{
LoginUtils
.
setLoginCallBack
(
listener
)
if
(!
UserHelper
.
isLogin
())
{
LoginUtils
.
setLoginCallBack
(
listener
)
if
(
this
::
mActivity
.
isInitialized
)
{
//如果mActivity有初始化,代表项目使用了一键登录
startLogin
(
context
as
Activity
,
isOpenDialog
)
...
...
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