Browse Source

聊天模糊逻辑添加全流程5

master
wanghongjun 5 months ago
parent
commit
e394fa7e66
  1. 2
      app/enterprise/model/Message.php

2
app/enterprise/model/Message.php

@ -289,7 +289,7 @@ class Message extends BaseModel
// 向发送方发送消息
wsSendMsg($toContactId,$type,$sendData,$is_group);
// 判断图片查看
if ($param['file_id']) {
if (isset($param['file_id']) && $param['file_id']) {
$res = MessageView::addView($message->msg_id,$param['user_id'],$param['file_id'], $data['content']);
if($res){
$src = File::where('file_id', $param['file_id'])->value('src');

Loading…
Cancel
Save