mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
a116d06d61
commit
8ffe64ad8e
@ -599,9 +599,7 @@ class BotReceiveMsgTask extends AbstractTask
|
||||
*/
|
||||
private function extractMessageContent(WebSocketDialogMsg $msg)
|
||||
{
|
||||
$result = '';
|
||||
$reserves = [];
|
||||
|
||||
switch ($msg->type) {
|
||||
case "file":
|
||||
// 提取文件消息
|
||||
@ -656,7 +654,9 @@ class BotReceiveMsgTask extends AbstractTask
|
||||
], $result);
|
||||
|
||||
// 转成 markdown
|
||||
$result = Base::html2markdown($result);
|
||||
if ($msg->msg['type'] !== 'md') {
|
||||
$result = Base::html2markdown($result);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user