mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
perf: 优化发送消息接口
This commit is contained in:
parent
9a69d20949
commit
80af98111b
@ -919,14 +919,14 @@ class DialogController extends AbstractController
|
|||||||
'ext' => $ext,
|
'ext' => $ext,
|
||||||
];
|
];
|
||||||
$result = WebSocketDialogMsg::sendMsg($action, $dialog_id, 'file', $fileData, $user->userid, false, false, $silence);
|
$result = WebSocketDialogMsg::sendMsg($action, $dialog_id, 'file', $fileData, $user->userid, false, false, $silence);
|
||||||
}
|
} else {
|
||||||
//
|
|
||||||
$msgData = ['text' => $text];
|
$msgData = ['text' => $text];
|
||||||
if ($markdown) {
|
if ($markdown) {
|
||||||
$msgData['type'] = 'md';
|
$msgData['type'] = 'md';
|
||||||
}
|
}
|
||||||
$result = WebSocketDialogMsg::sendMsg($action, $dialog_id, 'text', $msgData, $user->userid, false, false, $silence);
|
$result = WebSocketDialogMsg::sendMsg($action, $dialog_id, 'text', $msgData, $user->userid, false, false, $silence);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user