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
ccb17b88
Commit
ccb17b88
authored
Nov 21, 2019
by
何天远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 退出登录 通知
parent
9636ee6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
config.gradle
config.gradle
+1
-1
LoginUtils.kt
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
+2
-0
PrivacyDialog.kt
m-user/src/main/java/com/yidianling/user/widget/PrivacyDialog.kt
+0
-2
No files found.
config.gradle
View file @
ccb17b88
...
...
@@ -48,7 +48,7 @@ ext {
"m-fm"
:
"0.0.15"
,
"m-muse"
:
"0.0.11"
,
"m-tests"
:
"0.0.10"
,
"m-user"
:
"0.0.3
0
"
,
"m-user"
:
"0.0.3
1
"
,
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.1"
,
...
...
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
View file @
ccb17b88
...
...
@@ -8,6 +8,7 @@ import com.yidianling.router.im.IMLoginInfo
import
com.yidianling.router.im.IMRequestCallback
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.api.event.UserLoginEvent
import
com.yidianling.user.api.event.UserLogoutEvent
import
com.yidianling.user.http.UserHttpImpl
import
com.yidianling.user.http.request.Logout
import
com.yidianling.user.route.UserIn
...
...
@@ -76,6 +77,7 @@ object LoginUtils {
@JvmStatic
fun
logout
()
{
EventBus
.
getDefault
().
post
(
UserLogoutEvent
())
UserHttpImpl
.
getInstance
().
logout
(
Logout
())
.
compose
(
RxUtils
.
resultData
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
m-user/src/main/java/com/yidianling/user/widget/PrivacyDialog.kt
View file @
ccb17b88
...
...
@@ -97,8 +97,6 @@ class PrivacyDialog : Dialog {
//清除UserInfo
UserHelper
.
setUserinfo
(
null
)
LoginUtils
.
logout
()
EventBus
.
getDefault
().
post
(
UserLogoutEvent
())
activity
!!
.
startActivity
(
Intent
(
activity
,
RegisterAndLoginActivity
::
class
.
java
))
}
...
...
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