no message

This commit is contained in:
kuaifan
2025-03-22 19:24:28 +08:00
parent cdd980112d
commit be53afe6b4
2 changed files with 5 additions and 0 deletions

View File

@@ -494,6 +494,9 @@ class BotReceiveMsgTask extends AbstractTask
$webhookUrl = "{$serverUrl}/ai/chat";
} else {
// 用户机器人
if (str_starts_with($command, '/')) {
return;
}
$userBot = UserBot::whereBotId($botUser->userid)->first();
$webhookUrl = $userBot?->webhook_url;
}