cfmgrv4 init...4
This commit is contained in:
parent
411b80e60e
commit
97a48b2ac6
@ -83,7 +83,7 @@ class AuditLogService extends CloudflareService
|
|||||||
$response = $this->getMySocket()->get($endpoint);
|
$response = $this->getMySocket()->get($endpoint);
|
||||||
$body = json_decode($response->getBody());
|
$body = json_decode($response->getBody());
|
||||||
foreach ($body->result as $result) {
|
foreach ($body->result as $result) {
|
||||||
if (isset($result->action->result) && $result->action->result && isset($result->newValueJson->zone_id)) {
|
if (isset($result->action->result) && $result->action->result && isset($result->newValueJson->zone_id) && isset($result->newValueJson->zone_name)) {
|
||||||
// log_message("debug", var_export($result->newValueJson, true));
|
// log_message("debug", var_export($result->newValueJson, true));
|
||||||
$entity = $this->getModel()->getEntityByPK($result->id);
|
$entity = $this->getModel()->getEntityByPK($result->id);
|
||||||
if ($entity === null) {
|
if ($entity === null) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user