mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix:调整发送参数逻辑
This commit is contained in:
parent
e3ce3bcfbe
commit
ec7af94f71
@ -470,7 +470,7 @@ class BotReceiveMsgTask extends AbstractTask
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
try {
|
try {
|
||||||
$res = Ihttp::ihttp_post($webhookUrl, [
|
$data = [
|
||||||
'text' => $command,
|
'text' => $command,
|
||||||
'token' => User::generateToken($botUser),
|
'token' => User::generateToken($botUser),
|
||||||
'dialog_id' => $dialog->id,
|
'dialog_id' => $dialog->id,
|
||||||
@ -481,7 +481,8 @@ class BotReceiveMsgTask extends AbstractTask
|
|||||||
'bot_uid' => $botUser->userid,
|
'bot_uid' => $botUser->userid,
|
||||||
'version' => Base::getVersion(),
|
'version' => Base::getVersion(),
|
||||||
'extras' => Base::array2json($extras)
|
'extras' => Base::array2json($extras)
|
||||||
], 10);
|
];
|
||||||
|
$res = Ihttp::ihttp_post($webhookUrl, $data, 10);
|
||||||
if ($userBot) {
|
if ($userBot) {
|
||||||
$userBot->webhook_num++;
|
$userBot->webhook_num++;
|
||||||
$userBot->save();
|
$userBot->save();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user