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
ac953120
Commit
ac953120
authored
Aug 31, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加声网login更改
parent
9d53d32a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
14 deletions
+12
-14
build.gradle
build.gradle
+1
-1
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+6
-7
build.gradle
m-im/build.gradle
+0
-1
LogoutHelper.java
m-im/src/main/java/com/yidianling/im/helper/LogoutHelper.java
+0
-3
AccountSettingActivity.java
m-user/src/main/java/com/yidianling/user/mine/AccountSettingActivity.java
+5
-2
No files found.
build.gradle
View file @
ac953120
...
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.48.
1
-SNAPSHOT"
componentVersion
=
"0.3.0.48.
4
-SNAPSHOT"
}
repositories
{
mavenCentral
()
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
ac953120
...
...
@@ -34,7 +34,6 @@ import com.ydl.ydlcommon.utils.log.AliYunLogConfig
import
com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.yidianling.im.api.bean.IMSendCustomNotificationResultCallBack
import
com.yidianling.user.api.event.UserLoginEvent
import
com.yidianling.user.api.event.UserLogoutEvent
import
com.yidianling.user.api.service.IUserService
import
de.greenrobot.event.EventBus
...
...
@@ -72,8 +71,9 @@ class YDLavManager {
fun
init
(
context
:
Context
,
appId
:
String
)
{
YDLRTMClient
.
instances
.
init
(
context
,
appId
,
listener
)
EventBus
.
getDefault
().
unregister
(
this
)
EventBus
.
getDefault
().
register
(
this
)
if
(!
EventBus
.
getDefault
().
isRegistered
(
this
))
{
EventBus
.
getDefault
().
register
(
this
)
}
//设置回调
setCallback
()
...
...
@@ -86,10 +86,6 @@ class YDLavManager {
}
}
public
fun
onEvent
(
event
:
UserLoginEvent
)
{
instances
.
login
(
event
.
uid
)
}
public
fun
onEvent
(
event
:
UserLogoutEvent
)
{
instances
.
logout
()
}
...
...
@@ -383,6 +379,9 @@ class YDLavManager {
}
fun
login
(
userId
:
String
?)
{
if
(!
EventBus
.
getDefault
().
isRegistered
(
this
))
{
EventBus
.
getDefault
().
register
(
this
)
}
login
(
userId
)
{
_
,
_
->
}
}
...
...
m-im/build.gradle
View file @
ac953120
...
...
@@ -77,5 +77,4 @@ dependencies {
implementation
project
(
":api:fm"
)
implementation
project
(
":api:consultant"
)
implementation
project
(
':api:confide'
)
implementation
project
(
':api:audioim'
)
}
m-im/src/main/java/com/yidianling/im/helper/LogoutHelper.java
View file @
ac953120
...
...
@@ -2,8 +2,6 @@ package com.yidianling.im.helper;
import
com.netease.nimlib.sdk.NIMClient
;
import
com.netease.nimlib.sdk.auth.AuthService
;
import
com.ydl.audioim.api.IAudioImService
;
import
com.ydl.ydlcommon.modular.ModularServiceManagerKt
;
import
com.yidianling.im.preference.IMCache
;
import
com.yidianling.nimbase.common.http.NimHttpClient
;
import
com.yidianling.uikit.api.NimUIKit
;
...
...
@@ -19,7 +17,6 @@ public class LogoutHelper {
NimUIKit
.
logout
();
IMCache
.
clear
();
NIMClient
.
getService
(
AuthService
.
class
).
logout
();
ModularServiceManagerKt
.
findRouteService
(
IAudioImService
.
class
).
logoutRtm
();
}
private
static
LogoutHelper
instance
;
...
...
m-user/src/main/java/com/yidianling/user/mine/AccountSettingActivity.java
View file @
ac953120
...
...
@@ -10,14 +10,15 @@ import android.widget.ToggleButton;
import
com.umeng.socialize.UMAuthListener
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.ydl.audioim.api.IAudioImService
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.ydl.ydlcommon.modular.ModularServiceManagerKt
;
import
com.ydl.ydlcommon.router.YdlCommonOut
;
import
com.ydl.ydlcommon.utils.LogUtil
;
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
;
import
com.ydl.ydlcommon.utils.remind.ToastHelper
;
import
com.ydl.ydlcommon.view.JumpTextView
;
...
...
@@ -299,8 +300,10 @@ public class AccountSettingActivity extends BaseActivity implements View.OnClick
//清除UserInfo
UserHelper
.
INSTANCE
.
setUserinfo
(
null
);
UserIn
.
INSTANCE
.
clearImData
();
ModularServiceManagerKt
.
findRouteService
(
IAudioImService
.
class
).
logoutRtm
();
ModularServiceManagerKt
.
findRouteService
(
IImService
.
class
).
logoutAll
();
LoginUtils
.
logout
();
EventBus
.
getDefault
().
post
(
new
RefreshRecentContactListEvent
());
finish
();
}
...
...
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