Commit 7f0d15a1 by konghaorui

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

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