perf: 优化AI群聊

This commit is contained in:
kuaifan
2024-12-06 14:44:59 +08:00
parent 08153cd99b
commit 4b89eb88bd
4 changed files with 130 additions and 73 deletions

View File

@@ -137,7 +137,7 @@ class WebSocketDialogMsgTask extends AbstractTask
// 机器人收到消处理
$botUser = User::whereUserid($userid)->whereBot(1)->first();
if ($botUser) {
$this->endArray[] = new BotReceiveMsgTask($botUser->userid, $msg->id, $mention, $this->client);
$this->endArray[] = new BotReceiveMsgTask($botUser->userid, $msg->id, $mentions, $this->client);
}
}
}