perf: 机器人支持静默推送

This commit is contained in:
kuaifan
2022-12-18 16:53:47 +08:00
parent 0c8a682fd0
commit 5c6eb18d74
3 changed files with 9 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ class BotReceiveMsgTask extends AbstractTask
])->render();
$text = preg_replace("/^\x20+/", "", $text);
$text = preg_replace("/\n\x20+/", "\n", $text);
WebSocketDialogMsg::sendMsg(null, $msg->dialog_id, 'text', ['text' => $text], $this->userid); // todo 未能在任务end事件来发送任务
WebSocketDialogMsg::sendMsg(null, $msg->dialog_id, 'text', ['text' => $text], $this->userid, false, false, true); // todo 未能在任务end事件来发送任务
}
}