Commit 388654b2 by 刘鹏

feat : 去掉推荐专家消息,倾诉eventbus更改注册反注册逻辑

parent 59214cdd
......@@ -5,12 +5,12 @@ ext {
ydlPublishVersion = [
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.49.57",
"m-confide" : "0.0.49.58",
"m-consultant" : "0.0.60.04",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.94",
"m-home" : "0.0.22.92",
"m-im" : "0.0.21.19",
"m-im" : "0.0.21.20",
"m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.10",
......@@ -39,7 +39,7 @@ ext {
"ydl-webview" : "0.0.38.58",
"ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.76",
"m-audioim" : "0.0.49.29.77",
"ydl-flutter-base": "0.0.14.38",
//以下 几乎不会动
......@@ -88,12 +88,12 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.49.57",
"m-confide" : "0.0.49.58",
"m-consultant" : "0.0.60.04",
"m-fm" : "0.0.30.07",
"m-user" : "0.0.61.94",
"m-home" : "0.0.22.92",
"m-im" : "0.0.21.19",
"m-im" : "0.0.21.20",
"m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.8",
......@@ -121,7 +121,7 @@ ext {
"ydl-webview" : "0.0.38.58",
"ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.76",
"m-audioim" : "0.0.49.29.77",
"ydl-flutter-base": "0.0.14.38",
//以下 几乎不会动
......
......@@ -66,9 +66,10 @@ class YDLavManager {
fun init(context: Context, appId: String) {
YDLRTMClient.instances.init(context, appId, listener)
if (!EventBus.getDefault().isRegistered(this)) {
EventBus.getDefault().register(this)
if (EventBus.getDefault().isRegistered(this)) {
EventBus.getDefault().unregister(this)
}
EventBus.getDefault().register(this)
//设置回调
setCallback()
......
......@@ -630,9 +630,9 @@ object IMChatUtil {
if (!(promptRule == 4 || promptRule == 5)) {
val showExpertList = !(promptRule == 1 || promptRule == 3)
if (actionHandler.userType == USER_TYPE_EXPERT && status == 2) { //当该专家离线时
sendRecommendExpertListMessage(1, showExpertList, toUid, actionHandler)
// sendRecommendExpertListMessage(1, showExpertList, toUid, actionHandler)
} else if (actionHandler.userType == USER_TYPE_EXPERT && status >= 3) { //当该专家忙碌时
sendRecommendExpertListMessage(2, showExpertList, toUid, actionHandler)
// sendRecommendExpertListMessage(2, showExpertList, toUid, actionHandler)
}
}
}
......
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