|
@@ 127-131 (lines=5) @@
|
| 124 |
|
$this->validateSecret(); |
| 125 |
|
$this->validateRequest(); |
| 126 |
|
|
| 127 |
|
if ($this->action->isAction('webhookinfo')) { |
| 128 |
|
$webhookinfo = Request::getWebhookInfo(); |
| 129 |
|
print_r($webhookinfo->getResult() ?: $webhookinfo->printError()); |
| 130 |
|
return $this; |
| 131 |
|
} |
| 132 |
|
if ($this->action->isAction(['set', 'unset', 'reset'])) { |
| 133 |
|
return $this->validateAndSetWebhook(); |
| 134 |
|
} |
|
@@ 142-145 (lines=4) @@
|
| 139 |
|
$this->handleRequest(); |
| 140 |
|
} elseif ($this->action->isAction('cron')) { |
| 141 |
|
$this->handleCron(); |
| 142 |
|
} elseif ($this->action->isAction('webhookinfo')) { |
| 143 |
|
$webhookinfo = Request::getWebhookInfo(); |
| 144 |
|
print_r($webhookinfo->getResult() ?: $webhookinfo->printError()); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
return $this; |
| 148 |
|
} |