Commit 5fa21c1d by 刘鹏

feat : im 增加私聊不分配导医方法

parent a676a7e0
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.04", "m-user" : "0.0.62.04",
"m-home" : "0.0.23.37", "m-home" : "0.0.23.37",
"m-im" : "0.0.21.32", "m-im" : "0.0.21.33",
"m-dynamic" : "0.0.7.36", "m-dynamic" : "0.0.7.36",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -28,7 +28,7 @@ ext { ...@@ -28,7 +28,7 @@ ext {
"m-tests-api" : "0.0.2", "m-tests-api" : "0.0.2",
"m-user-api" : "0.0.10.19", "m-user-api" : "0.0.10.19",
"m-home-api" : "0.0.4.2", "m-home-api" : "0.0.4.2",
"m-im-api" : "0.0.12.23", "m-im-api" : "0.0.12.24",
"m-dynamic-api" : "0.0.3.71", "m-dynamic-api" : "0.0.3.71",
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
...@@ -96,7 +96,7 @@ ext { ...@@ -96,7 +96,7 @@ ext {
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.04", "m-user" : "0.0.62.04",
"m-home" : "0.0.23.37", "m-home" : "0.0.23.37",
"m-im" : "0.0.21.32", "m-im" : "0.0.21.33",
"m-dynamic" : "0.0.7.36", "m-dynamic" : "0.0.7.36",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
...@@ -113,7 +113,7 @@ ext { ...@@ -113,7 +113,7 @@ ext {
"m-tests-api" : "0.0.2", "m-tests-api" : "0.0.2",
"m-user-api" : "0.0.10.19", "m-user-api" : "0.0.10.19",
"m-home-api" : "0.0.4.2", "m-home-api" : "0.0.4.2",
"m-im-api" : "0.0.12.23", "m-im-api" : "0.0.12.24",
"m-dynamic-api" : "0.0.3.71", "m-dynamic-api" : "0.0.3.71",
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//mdt组件 //mdt组件
......
...@@ -153,6 +153,23 @@ object IMChatUtil { ...@@ -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") @SuppressLint("CheckResult")
......
...@@ -70,6 +70,9 @@ class IMServiceImpl : IImService { ...@@ -70,6 +70,9 @@ class IMServiceImpl : IImService {
override fun startP2PSession(context: Activity, location: Int, ffrom2: String?) { override fun startP2PSession(context: Activity, location: Int, ffrom2: String?) {
IMChatUtil.startCms(context,location,ffrom2) IMChatUtil.startCms(context,location,ffrom2)
} }
override fun startChatBySessionId(context: Activity, toUid: String) {
IMChatUtil.startChatBySessionId(context as AppCompatActivity,toUid)
}
override fun startP2PXiaoYi(context: Context) { override fun startP2PXiaoYi(context: Context) {
if (!ImIn.loginByOneKeyLogin(context,true)) { if (!ImIn.loginByOneKeyLogin(context,true)) {
......
...@@ -21,6 +21,8 @@ interface IImService : IProvider { ...@@ -21,6 +21,8 @@ interface IImService : IProvider {
// 打开私聊界面 // 打开私聊界面
fun startP2PSession(context: Activity, toUid: String) fun startP2PSession(context: Activity, toUid: String)
// 直接打开聊天页面,不走分配导医
fun startChatBySessionId(context: Activity, toUid: String)
// 打开信息前置收集页 // 打开信息前置收集页
fun startP2PSession(context: Activity, location: Int, ffrom2: String?) fun startP2PSession(context: Activity, location: Int, ffrom2: String?)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment