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
79dc8a81
Commit
79dc8a81
authored
Apr 26, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息类型-完成订单38
parent
5771fb70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+3
-1
CustomAttachParser.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
+3
-0
CustomAttachmentConfirmOrder.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentConfirmOrder.java
+1
-1
No files found.
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
79dc8a81
...
...
@@ -53,6 +53,7 @@ import com.yidianling.im.session.extension.CustomAttachSubScriptTime;
import
com.yidianling.im.session.extension.CustomAttachTipMsg
;
import
com.yidianling.im.session.extension.CustomAttachment
;
import
com.yidianling.im.session.extension.CustomAttachmentBusinessCard
;
import
com.yidianling.im.session.extension.CustomAttachmentConfirmOrder
;
import
com.yidianling.im.session.extension.CustomAttachmentEvaluate
;
import
com.yidianling.im.session.extension.CustomAttachmentFilter
;
import
com.yidianling.im.session.extension.CustomAttachmentJumpToDaoYi
;
...
...
@@ -75,6 +76,7 @@ import com.yidianling.im.session.viewholder.MsgViewHolderAVChat;
import
com.yidianling.im.session.viewholder.MsgViewHolderAssistantReceivedMoney
;
import
com.yidianling.im.session.viewholder.MsgViewHolderBusinessCard
;
import
com.yidianling.im.session.viewholder.MsgViewHolderChatTip
;
import
com.yidianling.im.session.viewholder.MsgViewHolderConfirmOrder
;
import
com.yidianling.im.session.viewholder.MsgViewHolderConsult
;
import
com.yidianling.im.session.viewholder.MsgViewHolderConsultCallStatus
;
import
com.yidianling.im.session.viewholder.MsgViewHolderConsultSubScribe
;
...
...
@@ -459,7 +461,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentJumpToDaoYi
.
class
,
MsgViewHolderJumpToDaoYi
.
class
);
//跳转导医聊天窗口触发导医分配逻辑,TYPE=35
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentSwitchKeFuTips
.
class
,
MsgViewHolderSwitchKeFuTips
.
class
);
//客服转介需求,TYPE=40
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentFilter
.
class
,
MsgViewHolderUnknown
.
class
);
// 注册消息过滤器
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentConfirmOrder
.
class
,
MsgViewHolderConfirmOrder
.
class
);
//完成订单消息类型38
}
private
static
void
setSessionListener
()
{
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
View file @
79dc8a81
...
...
@@ -135,6 +135,9 @@ public class CustomAttachParser implements MsgAttachmentParser {
case
CustomAttachmentType
.
TYPE_FILTER_42
:
attachment
=
new
CustomAttachmentFilter
();
break
;
case
CustomAttachmentType
.
TYPE_CONFIRM_ORDER
:
//38 确认订单消息
attachment
=
new
CustomAttachmentConfirmOrder
();
break
;
default
:
attachment
=
new
DefaultCustomAttachment
();
break
;
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentConfirmOrder.java
View file @
79dc8a81
...
...
@@ -15,7 +15,7 @@ public class CustomAttachmentConfirmOrder extends CustomAttachment{
public
String
servicetype
;
public
Long
orderid
;
CustomAttachmentConfirmOrder
(
int
type
)
{
CustomAttachmentConfirmOrder
()
{
super
(
CustomAttachmentType
.
TYPE_CONFIRM_ORDER
);
}
...
...
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