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
5fa21c1d
Commit
5fa21c1d
authored
May 08, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : im 增加私聊不分配导医方法
parent
a676a7e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
config.gradle
config.gradle
+4
-4
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+17
-0
IMServiceImpl.kt
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
+3
-0
IImService.kt
m-im/src/main/modular_api/com/yidianling/im/api/service/IImService.kt
+2
-0
No files found.
config.gradle
View file @
5fa21c1d
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
"m-home"
:
"0.0.23.37"
,
"m-im"
:
"0.0.21.3
2
"
,
"m-im"
:
"0.0.21.3
3
"
,
"m-dynamic"
:
"0.0.7.36"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -28,7 +28,7 @@ ext {
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.19"
,
"m-home-api"
:
"0.0.4.2"
,
"m-im-api"
:
"0.0.12.2
3
"
,
"m-im-api"
:
"0.0.12.2
4
"
,
"m-dynamic-api"
:
"0.0.3.71"
,
//-------------- 功能组件 --------------
...
...
@@ -96,7 +96,7 @@ ext {
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
"m-home"
:
"0.0.23.37"
,
"m-im"
:
"0.0.21.3
2
"
,
"m-im"
:
"0.0.21.3
3
"
,
"m-dynamic"
:
"0.0.7.36"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -113,7 +113,7 @@ ext {
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.19"
,
"m-home-api"
:
"0.0.4.2"
,
"m-im-api"
:
"0.0.12.2
3
"
,
"m-im-api"
:
"0.0.12.2
4
"
,
"m-dynamic-api"
:
"0.0.3.71"
,
//-------------- 功能组件 --------------
//mdt组件
...
...
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
5fa21c1d
...
...
@@ -153,6 +153,23 @@ object IMChatUtil {
}
/**
* 直接和对方聊天,不判断是否有代运营
* @param context
* @param chatItemBean
*/
@SuppressLint
(
"CheckResult"
)
fun
startChatBySessionId
(
context
:
AppCompatActivity
?,
sessionId
:
String
)
{
context
?.
let
{
prepareChatData
(
it
,
sessionId
,
object
:
ChatDataRequestListener
{
override
fun
onSuccess
(
expertInfo
:
IMExpertBuild
)
{
startChatSession
(
sessionId
,
expertInfo
,
0
,
context
)
}
})
}
}
/**
* 非私聊列表进入,前置数据请求
* */
@SuppressLint
(
"CheckResult"
)
...
...
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
View file @
5fa21c1d
...
...
@@ -70,6 +70,9 @@ class IMServiceImpl : IImService {
override
fun
startP2PSession
(
context
:
Activity
,
location
:
Int
,
ffrom2
:
String
?)
{
IMChatUtil
.
startCms
(
context
,
location
,
ffrom2
)
}
override
fun
startChatBySessionId
(
context
:
Activity
,
toUid
:
String
)
{
IMChatUtil
.
startChatBySessionId
(
context
as
AppCompatActivity
,
toUid
)
}
override
fun
startP2PXiaoYi
(
context
:
Context
)
{
if
(!
ImIn
.
loginByOneKeyLogin
(
context
,
true
))
{
...
...
m-im/src/main/modular_api/com/yidianling/im/api/service/IImService.kt
View file @
5fa21c1d
...
...
@@ -21,6 +21,8 @@ interface IImService : IProvider {
// 打开私聊界面
fun
startP2PSession
(
context
:
Activity
,
toUid
:
String
)
// 直接打开聊天页面,不走分配导医
fun
startChatBySessionId
(
context
:
Activity
,
toUid
:
String
)
// 打开信息前置收集页
fun
startP2PSession
(
context
:
Activity
,
location
:
Int
,
ffrom2
:
String
?)
...
...
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