Browse Source

获取撤回消息数据优化

master
wanghongjun 6 months ago
parent
commit
b4a6602979
  1. 2
      app/enterprise/controller/Im.php

2
app/enterprise/controller/Im.php

@ -328,7 +328,7 @@ class Im extends BaseController
}
// 查询当前用户是否查看过原图
$is_view = MessageView::isView($v['msg_id'], $userInfo['user_id']);
if ($is_view && $v['file_id']) {
if ($is_view && $v['file_id'] && $v['is_undo'] == 0) {
$src = File::where(['file_id'=>$v['file_id'],'delete_time' => 0])->value('src');
if ($src) $v['content'] = $src;
}

Loading…
Cancel
Save