app消息接收发送

This commit is contained in:
2023-09-27 20:55:14 +08:00
parent 295cd5c925
commit 1339916988
2 changed files with 3 additions and 2 deletions

View File

@@ -353,7 +353,7 @@ export default {
time: resbody.createTime, //时间 time: resbody.createTime, //时间
fromInfo: resbody.fromInfo, //来源信息 fromInfo: resbody.fromInfo, //来源信息
groupInfo: resbody.groupInfo, //群信息 groupInfo: resbody.groupInfo, //群信息
userId: _userId, //talktoId userId: userId, //talktoId
personId: resbody.fromInfo.userId, personId: resbody.fromInfo.userId,
msgId: resbody.msgId, //消息Id msgId: resbody.msgId, //消息Id
disturb: resbody.msgContent.disturb, //是否静默消息 disturb: resbody.msgContent.disturb, //是否静默消息

View File

@@ -37,7 +37,7 @@ export default {
e = JSON.parse(e) e = JSON.parse(e)
e.data.pushType="MSG" e.data.pushType="MSG"
e.data.msgContent={ e.data.msgContent={
msgType:"UNKOWN", msgType:"TEXT",
content:e.data.messageBody, content:e.data.messageBody,
disturb:false, disturb:false,
top:false, top:false,
@@ -45,6 +45,7 @@ export default {
e.data.windowType="SINGLE" e.data.windowType="SINGLE"
e.data.createTime=e.data.messageTime; e.data.createTime=e.data.messageTime;
e.data.userId=e.data.fromId;
e.data.fromInfo={ e.data.fromInfo={
userId:e.data.fromId userId:e.data.fromId
}; };