搜索关键词去除 

This commit is contained in:
kuaifan 2022-07-11 07:48:47 +08:00
parent 43a4e5741a
commit 8e9cd253e4

View File

@ -484,7 +484,7 @@ class WebSocketDialogMsg extends AbstractModel
public function generateMsgKey() public function generateMsgKey()
{ {
return match ($this->type) { return match ($this->type) {
'text' => strip_tags($this->msg['text']), 'text' => str_replace(" ", " ", strip_tags($this->msg['text'])),
'meeting', 'file' => $this->msg['name'], 'meeting', 'file' => $this->msg['name'],
default => '', default => '',
}; };