Browse Source

系统公告显示不是最新时间、推送消息设置称呼错误

master
wanghongjun 4 months ago
parent
commit
b54cafb231
  1. 2
      app/enterprise/model/Message.php
  2. 2
      app/enterprise/model/User.php

2
app/enterprise/model/Message.php

@ -382,7 +382,7 @@ class Message extends BaseModel
if ($is_group) {
$msgInfo['content'] = $fromUser['realname'] . $data['content'];
} else {
$msgInfo['content'] = lang('im.you'). $data['content'];
$msgInfo['content'] = lang('im.other'). $data['content'];
}
$msgInfo['fromUser'] = $fromUser;
$msgInfo['download'] = '';

2
app/enterprise/model/User.php

@ -293,7 +293,7 @@ class User extends BaseModel
$fileTransfer=$staticList['fileTransfer'];
$aiChat=$staticList['aiChat'];
$count=Message::where(['chat_identify'=>$adminNotice['id']])->count();
$createTime=Message::where(['chat_identify'=>$adminNotice['id']])->order('id desc')->value('create_time');
$createTime=Message::where(['chat_identify'=>$adminNotice['id']])->order('msg_id desc')->value('create_time');
$sendTime=0;
if($createTime){
$sendTime=is_string($createTime) ? strtotime($createTime) : $createTime;

Loading…
Cancel
Save