mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 20:18:10 +00:00
fix: 无法下载转发文件的问题
This commit is contained in:
parent
8f42e2924d
commit
c8e518b4e6
@ -373,6 +373,7 @@ class WebSocketDialogMsg extends AbstractModel
|
||||
public function forwardMsg($dialogids, $userids, $sender)
|
||||
{
|
||||
return AbstractModel::transaction(function() use ($dialogids, $sender, $userids) {
|
||||
$originalMsg = Base::json2array($this->getRawOriginal('msg'));
|
||||
$msgs = [];
|
||||
$already = [];
|
||||
if ($dialogids) {
|
||||
@ -380,7 +381,7 @@ class WebSocketDialogMsg extends AbstractModel
|
||||
$dialogids = [$dialogids];
|
||||
}
|
||||
foreach ($dialogids as $dialogid) {
|
||||
$res = self::sendMsg(null, $dialogid, $this->type, $this->getOriginal('msg'), $sender);
|
||||
$res = self::sendMsg(null, $dialogid, $this->type, $originalMsg, $sender);
|
||||
if (Base::isSuccess($res)) {
|
||||
$msgs[] = $res['data'];
|
||||
$already[] = $dialogid;
|
||||
@ -397,7 +398,7 @@ class WebSocketDialogMsg extends AbstractModel
|
||||
}
|
||||
$dialog = WebSocketDialog::checkUserDialog($sender, $userid);
|
||||
if ($dialog && !in_array($dialog->id, $already)) {
|
||||
$res = self::sendMsg(null, $dialog->id, $this->type, $this->getOriginal('msg'), $sender);
|
||||
$res = self::sendMsg(null, $dialog->id, $this->type, $originalMsg, $sender);
|
||||
if (Base::isSuccess($res)) {
|
||||
$msgs[] = $res['data'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user