根据messageKey查询message信息接口

This commit is contained in:
2023-12-04 23:29:37 +08:00
parent d2a3af7f1f
commit 48c4b58ed0
5 changed files with 62 additions and 3 deletions

View File

@@ -492,6 +492,7 @@ export default {
if (same) {
return
}
//离线消息体
var msgOffline = {
userId: userId,
@@ -515,7 +516,7 @@ export default {
nickName: fromInfo.nickName,
portrait: fromInfo.portrait,
content: msgTypeLabel,
time: dayjs().format("YYYY/MM/DD HH:mm:ss"),
time: dayjs(time).format("YYYY/MM/DD HH:mm:ss"),
num: disturb == 'Y' ? 'dot' : (chatListInfo.num ? chatListInfo.num + 1 : 1),
windowType: windowType,
disturb: "N", //是否静默消息
@@ -538,6 +539,7 @@ export default {
userType: 'GROUP'
}
}
//TODO 需要请求接口获取真实的消息时间
chatWindowData.push(msgOffline)
store.dispatch('updateChatById', {
userId: userId,
@@ -1022,6 +1024,9 @@ export default {
const _data = JSON.parse(msg.messageBody)
// try{
// console.log("=======================formatMessage")
// console.log(_data)