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
7f0d15a1
Commit
7f0d15a1
authored
Dec 20, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复私聊页面未显示在线状态 bug
parent
a28b8a0e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
YDLBaseMessageActivity.java
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLBaseMessageActivity.java
+5
-1
AppDelegate.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/delegate/AppDelegate.kt
+0
-3
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLBaseMessageActivity.java
View file @
7f0d15a1
...
...
@@ -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
)
{
// 助理
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/delegate/AppDelegate.kt
View file @
7f0d15a1
...
...
@@ -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
!!
)
...
...
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