no message

This commit is contained in:
kuaifan
2024-10-19 19:48:06 +08:00
parent 5660be12f6
commit 2ebaeb3453
9 changed files with 82 additions and 40 deletions

View File

@@ -1324,7 +1324,10 @@ class DialogController extends AbstractController
if (empty($dialog)) {
return Base::retError('匿名机器人会话不存在');
}
return WebSocketDialogMsg::sendMsg(null, $dialog->id, 'text', ['text' => "<p>{$text}</p>"], $botUser->userid, true);
return WebSocketDialogMsg::sendMsg(null, $dialog->id, 'template', [
'type' => 'content',
'content' => $text,
], $botUser->userid, true);
}
/**