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
6302007a
Commit
6302007a
authored
Jul 01, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:倾诉消息
parent
cf6f6fbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+3
-0
CustomAttachParser.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
+4
-0
CustomAttachmentType.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentType.java
+7
-2
No files found.
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
6302007a
...
...
@@ -44,6 +44,7 @@ import com.yidianling.im.session.extension.CustomAttachConsult;
import
com.yidianling.im.session.extension.CustomAttachConsultCallStatus
;
import
com.yidianling.im.session.extension.CustomAttachConsultPerfectData
;
import
com.yidianling.im.session.extension.CustomAttachConsultSubScript
;
import
com.yidianling.im.session.extension.CustomAttachLingXiJumpConfideList
;
import
com.yidianling.im.session.extension.CustomAttachLingxiAnswerQuestion
;
import
com.yidianling.im.session.extension.CustomAttachLingxiFirstQuestion
;
import
com.yidianling.im.session.extension.CustomAttachLingxiWhichQuestion
;
...
...
@@ -89,6 +90,7 @@ import com.yidianling.im.session.viewholder.MsgViewHolderCustomerServiceCard;
import
com.yidianling.im.session.viewholder.MsgViewHolderDefCustom
;
import
com.yidianling.im.session.viewholder.MsgViewHolderEvaluate
;
import
com.yidianling.im.session.viewholder.MsgViewHolderJumpToDaoYi
;
import
com.yidianling.im.session.viewholder.MsgViewHolderLingXiJumpConfideList
;
import
com.yidianling.im.session.viewholder.MsgViewHolderLingxiAnswerQuestion
;
import
com.yidianling.im.session.viewholder.MsgViewHolderLingxiFirstQuestion
;
import
com.yidianling.im.session.viewholder.MsgViewHolderLingxiWhichQuestion
;
...
...
@@ -474,6 +476,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiWhichQuestion
.
class
,
MsgViewHolderLingxiWhichQuestion
.
class
);
//灵犀2.0-您想要咨询下列哪些问题
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiAnswerQuestion
.
class
,
MsgViewHolderLingxiAnswerQuestion
.
class
);
//灵犀2.0-回答问题
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiFirstQuestion
.
class
,
MsgViewHolderLingxiFirstQuestion
.
class
);
//灵犀2.0-首问语
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingXiJumpConfideList
.
class
,
MsgViewHolderLingXiJumpConfideList
.
class
);
//灵犀2.0-倾诉列表
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
View file @
6302007a
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.nimlib.sdk.msg.attachment.MsgAttachment
;
import
com.netease.nimlib.sdk.msg.attachment.MsgAttachmentParser
;
import
com.ydl.ydlcommon.utils.LogUtil
;
/**
* Created by zhoujianghua on 2015/4/9.
...
...
@@ -134,6 +135,9 @@ public class CustomAttachParser implements MsgAttachmentParser {
//41 42消息过滤掉
case
CustomAttachmentType
.
TYPE_FILTER_41
:
case
CustomAttachmentType
.
TYPE_FILTER_42
:
case
CustomAttachmentType
.
TYPE_FILTER_61
:
case
CustomAttachmentType
.
TYPE_FILTER_70
:
case
CustomAttachmentType
.
TYPE_FILTER_71
:
attachment
=
new
CustomAttachmentFilter
();
break
;
case
CustomAttachmentType
.
TYPE_CONFIRM_ORDER
:
//38 确认订单消息
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentType.java
View file @
6302007a
...
...
@@ -38,10 +38,15 @@ public interface CustomAttachmentType {
int
TYPE_EXPERT_DETAIL_CARD
=
34
;
//专家名片
int
TYPE_JUMPTO_DAOYI
=
35
;
//跳转导医聊天界面
int
TYPE_SWITCH_KEFU_TIPS
=
40
;
//客服切换第一次提示语
int
TYPE_FILTER_41
=
41
;
//客服切换过滤41
int
TYPE_FILTER_42
=
42
;
//客服切换过滤42
int
TYPE_CONFIRM_ORDER
=
38
;
//确认订单
int
TYPE_ORDER_ALREADY_DONE
=
39
;
//已完成订单
//需要过滤掉的消息
int
TYPE_FILTER_41
=
41
;
//客服切换过滤41
int
TYPE_FILTER_42
=
42
;
//客服切换过滤42
int
TYPE_FILTER_61
=
61
;
int
TYPE_FILTER_70
=
70
;
int
TYPE_FILTER_71
=
71
;
//灵犀2.0问诊数据
int
TYPE_LINGXI_FIRST_QUESTION
=
50
;
//首问语
...
...
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