no message

This commit is contained in:
Pang
2024-03-10 22:13:21 +08:00
parent 28717fd0c7
commit 5f0a0e0371
2 changed files with 3 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ class WebSocketDialog extends AbstractModel
if (isset($this->search_msg_id)) {
// 最后消息 (搜索预览消息)
$this->last_msg = WebSocketDialogMsg::whereDialogId($this->id)->find($this->search_msg_id);
$this->last_at = $this->last_msg?->created_at;
$this->last_at = $this->last_msg ? Carbon::parse($this->last_msg->created_at)->format('Y-m-d H:i:s') : null;
} else {
// 未读信息
if (Base::judgeClientVersion("0.34.0")) {