From f714bcda2464a30db7506cfc00ae909f62aeba7d Mon Sep 17 00:00:00 2001 From: chaz6chez Date: Tue, 26 Mar 2024 11:40:27 +0800 Subject: [PATCH] fixed bug --- composer.json | 2 +- src/WebhookHandler.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c3885c5..d8ecc39 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "authors": [ { "name": "chaz6chez", - "email": "250220719@qq.com", + "email": "chaz6chez1993@outlook.com", "homepage": "http://chaz6chez.cn" } ], diff --git a/src/WebhookHandler.php b/src/WebhookHandler.php index 8015e3b..8ca3127 100644 --- a/src/WebhookHandler.php +++ b/src/WebhookHandler.php @@ -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' => [