This commit is contained in:
Wayne 2024-03-13 09:57:08 +08:00
parent c0eb4586ef
commit 754c71e75b

View File

@ -26,7 +26,8 @@ class cloudflare
$this->domain = $_CFG['cf_domain'];
$this->zoneid = $_CFG['cf_site_id'];
$this->apikey = $_CFG['cf_api_key'];
$this->apiemail = $_CFG['cf_email'];
$this->token = 'kwtRK-E4WSXcOnqQyoFS4iooUsDR-mBLozFqByVP';
$this->apiemail = $_CFG['cf_email'];
$this->apiip = $_CFG['cf_ip'];
$this->error_msg = '';
}
@ -41,7 +42,8 @@ class cloudflare
'proxied' => true,
];
$header[] = 'X-Auth-Key: '.$this->apikey;
print_r($real_param);
$header[] = 'X-Auth-Email: '.$this->apiemail ;
$header[] = 'Content-Type: application/json ' ;