fix:调整发送参数逻辑

This commit is contained in:
zzw 2024-02-29 11:39:30 +08:00
parent e3ce3bcfbe
commit ec7af94f71
No known key found for this signature in database
GPG Key ID: 7EF784097403E91E

View File

@ -470,7 +470,7 @@ class BotReceiveMsgTask extends AbstractTask
}
//
try {
$res = Ihttp::ihttp_post($webhookUrl, [
$data = [
'text' => $command,
'token' => User::generateToken($botUser),
'dialog_id' => $dialog->id,
@ -481,7 +481,8 @@ class BotReceiveMsgTask extends AbstractTask
'bot_uid' => $botUser->userid,
'version' => Base::getVersion(),
'extras' => Base::array2json($extras)
], 10);
];
$res = Ihttp::ihttp_post($webhookUrl, $data, 10);
if ($userBot) {
$userBot->webhook_num++;
$userBot->save();