Browse Source

发送消息接口优化

master
wanghongjun 2 weeks ago
parent
commit
2b0fa8ea2f
  1. 2
      app/enterprise/model/Message.php

2
app/enterprise/model/Message.php

@ -295,7 +295,7 @@ class Message extends BaseModel
// 判断图片查看
if (isset($param['file_id']) && $param['file_id']) {
$res = MessageView::addView($message->msg_id,$param['user_id'],$param['file_id'], $data['content']);
if($res){
if($res || $sendData['user_id'] == $sendData['from_user']){
$src = File::where('file_id', $param['file_id'])->value('src');
if ($src) {
$sendData['content'] = getFileUrl($src);

Loading…
Cancel
Save