Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Mar 26, 2024
1 parent 31a8798 commit f714bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"authors": [
{
"name": "chaz6chez",
"email": "250220719@qq.com",
"email": "chaz6chez1993@outlook.com",
"homepage": "http://chaz6chez.cn"
}
],
Expand Down
4 changes: 4 additions & 0 deletions src/WebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public function run(string $queue, string $group, array $dataArray)
{
$idArray = array_keys($dataArray);
$messageArray = array_values($dataArray);
// 如果没有配置webhook地址,直接ack
if (!HookServer::getConfig('webhook_url')) {
HookServer::instance()->ack($queue, $group, $idArray);
}
// http发送
$this->_request($method = 'POST', [
'header' => [
Expand Down

0 comments on commit f714bcd

Please sign in to comment.