Commit 7f0d15a1 by konghaorui

修复私聊页面未显示在线状态 bug

parent a28b8a0e
...@@ -12,6 +12,7 @@ import android.widget.LinearLayout; ...@@ -12,6 +12,7 @@ import android.widget.LinearLayout;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import com.yidianling.common.tools.LogUtil;
import com.yidianling.common.tools.ToastUtil; import com.yidianling.common.tools.ToastUtil;
import com.yidianling.im.R; import com.yidianling.im.R;
import com.yidianling.nimbase.api.model.session.SessionCustomization; import com.yidianling.nimbase.api.model.session.SessionCustomization;
...@@ -143,7 +144,9 @@ public abstract class YDLBaseMessageActivity extends UI { ...@@ -143,7 +144,9 @@ public abstract class YDLBaseMessageActivity extends UI {
if (ActionHandlerStorage.getL(sessionId).getUserType() == 2) { if (ActionHandlerStorage.getL(sessionId).getUserType() == 2) {
// 专家 // 专家
// 调取接口获取专家状态 // 调取接口获取专家状态
Disposable dis = ServiceImpl.Companion.getInstance().getDoctorChatStatus(Long.parseLong(ActionHandlerStorage.getL(sessionId).getInfo().toUid)) Disposable dis = ServiceImpl.Companion.getInstance()
.getDoctorChatStatus(Long.parseLong(ActionHandlerStorage.getL(sessionId).getInfo().toUid))
.compose(RxUtils.applySchedulers())
.subscribe(chatStatusBean -> { .subscribe(chatStatusBean -> {
if (ActionHandlerStorage.getL(sessionId) != null) { if (ActionHandlerStorage.getL(sessionId) != null) {
...@@ -175,6 +178,7 @@ public abstract class YDLBaseMessageActivity extends UI { ...@@ -175,6 +178,7 @@ public abstract class YDLBaseMessageActivity extends UI {
} }
}, throwable -> { }, throwable -> {
LogUtil.i("getDoctorChatStatus throwable:"+throwable);
}); });
} else if (ActionHandlerStorage.getL(sessionId).getUserType() == 3) { } else if (ActionHandlerStorage.getL(sessionId).getUserType() == 3) {
// 助理 // 助理
......
...@@ -6,7 +6,6 @@ import com.ydl.ydlcommon.app.YdlRepository ...@@ -6,7 +6,6 @@ import com.ydl.ydlcommon.app.YdlRepository
import com.ydl.ydlcommon.base.config.GlobalConfig import com.ydl.ydlcommon.base.config.GlobalConfig
import com.ydl.ydlcommon.base.config.IApp import com.ydl.ydlcommon.base.config.IApp
import com.ydl.ydlcommon.base.config.IConfigModule import com.ydl.ydlcommon.base.config.IConfigModule
import com.ydl.ydlcommon.utils.AppProgressUtils
import com.ydl.ydlcommon.utils.ManifestParser import com.ydl.ydlcommon.utils.ManifestParser
import java.util.* import java.util.*
...@@ -50,8 +49,6 @@ class AppDelegate(context: Context) : IAppLifecycles,IApp{ ...@@ -50,8 +49,6 @@ class AppDelegate(context: Context) : IAppLifecycles,IApp{
//初始化YDL第三方依赖 //初始化YDL第三方依赖
YdlRepository.initApp(application,mGlobalConfig?.appDebug?:false) YdlRepository.initApp(application,mGlobalConfig?.appDebug?:false)
//执行 扩展的 App onCreate 逻辑 //执行 扩展的 App onCreate 逻辑
for (lifecycle in mAppLifecycles!!) { for (lifecycle in mAppLifecycles!!) {
lifecycle.onCreate(mApplication!!) lifecycle.onCreate(mApplication!!)
......
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