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
ccdcf7e2
Commit
ccdcf7e2
authored
Aug 31, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加声网logout
parent
c2689a91
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
6 deletions
+20
-6
IAudioImService.kt
api/audioim/src/main/java/com/ydl/audioim/api/IAudioImService.kt
+8
-3
build.gradle
build.gradle
+1
-1
AudioImServiceImp.kt
m-audioim/src/main/java/com/ydl/audioim/modular/AudioImServiceImp.kt
+6
-1
build.gradle
m-im/build.gradle
+1
-0
LogoutHelper.java
m-im/src/main/java/com/yidianling/im/helper/LogoutHelper.java
+4
-1
No files found.
api/audioim/src/main/java/com/ydl/audioim/api/IAudioImService.kt
View file @
ccdcf7e2
...
...
@@ -22,18 +22,23 @@ interface IAudioImService : IProvider{
/**
* rtm登录返回并登录状态
*/
fun
loginRtm
(
userId
:
String
?,
event
:
(
isSuccess
:
Boolean
,
msg
:
String
?)
->
Unit
)
fun
loginRtm
(
userId
:
String
?,
event
:
(
isSuccess
:
Boolean
,
msg
:
String
?)
->
Unit
)
/**
* rtm登录
*/
fun
loginRtm
(
userId
:
String
?)
fun
loginRtm
(
userId
:
String
?)
/**
* rtm退出登录
*/
fun
logoutRtm
()
/**
* 拨打语音电话转axb弹窗
*/
fun
openAxbDialog
(
activity
:
Activity
?,
type
:
Int
,
phoneNumber
:
String
?)
fun
openAxbDialog
(
activity
:
Activity
?,
type
:
Int
,
phoneNumber
:
String
?)
/**
* 事件上报
...
...
build.gradle
View file @
ccdcf7e2
...
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.4
4
"
componentVersion
=
"0.3.0.4
8.1-SNAPSHOT
"
}
repositories
{
mavenCentral
()
...
...
m-audioim/src/main/java/com/ydl/audioim/modular/AudioImServiceImp.kt
View file @
ccdcf7e2
...
...
@@ -33,8 +33,13 @@ class AudioImServiceImp : IAudioImService {
YDLavManager
.
instances
.
login
(
userId
)
}
override
fun
logoutRtm
()
{
YDLavManager
.
instances
.
logout
()
}
override
fun
openAxbDialog
(
activity
:
Activity
?,
type
:
Int
,
phoneNumber
:
String
?)
{
val
dialog
=
AxbConfirmDialog
(
activity
,
type
,
object
:
AxbConfirmDialog
.
OnClickEnsureListener
{
val
dialog
=
AxbConfirmDialog
(
activity
,
type
,
object
:
AxbConfirmDialog
.
OnClickEnsureListener
{
override
fun
onClickEnsure
()
{
phoneNumber
?.
let
{
val
phoneIntent
=
Intent
(
Intent
.
ACTION_DIAL
,
Uri
.
parse
(
"tel:$phoneNumber"
))
...
...
m-im/build.gradle
View file @
ccdcf7e2
...
...
@@ -76,4 +76,5 @@ 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 @
ccdcf7e2
package
com
.
yidianling
.
im
.
helper
;
import
com.yidianling.uikit.api.NimUIKit
;
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
;
/**
* 注销帮助类
...
...
@@ -17,6 +19,7 @@ public class LogoutHelper {
NimUIKit
.
logout
();
IMCache
.
clear
();
NIMClient
.
getService
(
AuthService
.
class
).
logout
();
ModularServiceManagerKt
.
findRouteService
(
IAudioImService
.
class
).
logoutRtm
();
}
private
static
LogoutHelper
instance
;
...
...
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