根据messageKey查询message信息接口
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -236,7 +236,7 @@ const store = new Vuex.Store({
|
||||
nickName: detail.nickName,
|
||||
portrait: _userId == _obj.fromId ? _userInfo
|
||||
.photo : detail.photo,
|
||||
time: dayjs(_obj.createTime).format(
|
||||
time: dayjs(_obj.time).format(
|
||||
"YYYY/MM/DD HH:mm:ss"),
|
||||
num: 0,
|
||||
windowType: 'SINGLE',
|
||||
@@ -320,6 +320,7 @@ const store = new Vuex.Store({
|
||||
}
|
||||
//判断头像是谁的
|
||||
|
||||
|
||||
context.dispatch('updateChatListInfoById', {
|
||||
userId: data.userId,
|
||||
data: {
|
||||
@@ -329,7 +330,7 @@ const store = new Vuex.Store({
|
||||
nickName: detail.nickName,
|
||||
portrait: _userId == _obj.fromId ? _userInfo
|
||||
.photo : detail.photo,
|
||||
time: dayjs(_obj.createTime).format(
|
||||
time: dayjs(_obj.time).format(
|
||||
"YYYY/MM/DD HH:mm:ss"),
|
||||
num: 0,
|
||||
windowType: 'SINGLE',
|
||||
|
||||
Reference in New Issue
Block a user