* webhook: refactor fetchHook.

This commit is contained in:
sunguangming
2023-12-21 16:58:41 +08:00
parent fccea48dae
commit abb680ac36
4 changed files with 86 additions and 61 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ class webhookTest
if(!$webhooks) $webhooks = $this->getListTest();
if(!$webhooks) return true;
foreach($webhooks as $id => $webhook)
foreach($webhooks as $webhook)
{
$postData = $this->objectModel->buildData($objectType, $objectID, $actionType, $actionID, $webhook);
$objects = $this->objectModel->fetchHook($webhook, $postData, $actionID);