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
7cb94db2
Commit
7cb94db2
authored
Jul 05, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 前置信息收集卡,通过服务端控制是否展示
parent
cea87958
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
SystemConfigByKeywordBean.java
m-im/src/main/java/com/yidianling/im/bean/SystemConfigByKeywordBean.java
+5
-1
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+11
-4
No files found.
m-im/src/main/java/com/yidianling/im/bean/SystemConfigByKeywordBean.java
View file @
7cb94db2
...
@@ -17,5 +17,9 @@ public class SystemConfigByKeywordBean {
...
@@ -17,5 +17,9 @@ public class SystemConfigByKeywordBean {
* value3 :
* value3 :
*/
*/
public
String
value1
;
public
Long
value1
;
/**
* 0:不弹信息卡,1:弹信息卡
* */
public
Long
value2
;
}
}
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
7cb94db2
...
@@ -63,6 +63,8 @@ object IMChatUtil {
...
@@ -63,6 +63,8 @@ object IMChatUtil {
private
const
val
USER_TYPE_EXPERT
=
2
//专家
private
const
val
USER_TYPE_EXPERT
=
2
//专家
private
const
val
USER_TYPE_ASSISTANT
=
3
//助理
private
const
val
USER_TYPE_ASSISTANT
=
3
//助理
private
const
val
USER_TYPE_USER
=
1
//用户
private
const
val
USER_TYPE_USER
=
1
//用户
//展示信息收集卡
private
const
val
SHOW_EMS_POP
=
1L
lateinit
var
doctorId
:
String
lateinit
var
doctorId
:
String
/**
/**
...
@@ -97,8 +99,10 @@ object IMChatUtil {
...
@@ -97,8 +99,10 @@ object IMChatUtil {
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
.
subscribe
{
val
skipTime
=
it
.
value1
.
toLong
()
val
skipTime
=
it
.
value1
if
(
isJumpToIm
(
skipTime
))
{
//0:不弹信息卡,1:弹信息卡
val
isPopCms
=
it
.
value2
if
(
SHOW_EMS_POP
!=
isPopCms
||
isJumpToIm
(
skipTime
))
{
// 请求接口获取咨询助理的uid
// 请求接口获取咨询助理的uid
getImJavaApi
().
getConsultAssistantUidRequest
(
location
,
ffrom2
)
getImJavaApi
().
getConsultAssistantUidRequest
(
location
,
ffrom2
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
@@ -190,8 +194,11 @@ object IMChatUtil {
...
@@ -190,8 +194,11 @@ object IMChatUtil {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
.
subscribe
{
//请求接口获取 前置信息收集间隔时间
//请求接口获取 前置信息收集间隔时间
val
skipTime
=
it
.
value1
.
toLong
()
val
skipTime
=
it
.
value1
if
(
isJumpToIm
(
skipTime
))
{
//0:不弹信息卡,1:弹信息卡
val
isPopCms
=
it
.
value2
if
(
SHOW_EMS_POP
!=
isPopCms
||
isJumpToIm
(
skipTime
))
{
//时间内已收集过信息,直接跳转到聊天页
//时间内已收集过信息,直接跳转到聊天页
startChat
(
context
,
toUid
,
isFromQingShu
)
startChat
(
context
,
toUid
,
isFromQingShu
)
}
else
{
}
else
{
...
...
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