This commit is contained in:
Wayne 2024-03-13 01:09:28 +08:00
parent 883588c9ee
commit 6bcf2bf94f
2 changed files with 6 additions and 5 deletions

View File

@ -261,7 +261,8 @@ elseif ($_REQUEST['act'] == 'update')
$cf_obj = new cloudflare;
$ret=$cf_obj->update_domain($cf['cf_iden'],trim($sub_domain));
if(!$ret){
sys_msg('網域自動修改失敗,請重新操作',1, array(), false);
// sys_msg('網域自動修改失敗,請重新操作',1, array(), false);
$cf_iden=0;
}else{
$cf_iden=$ad_ret;
}
@ -278,7 +279,8 @@ elseif ($_REQUEST['act'] == 'update')
$cf_obj = new cloudflare;
$ad_ret=$cf_obj->add_domain(trim($sub_domain));
if(!$ad_ret){
sys_msg('網域自動新增失敗,請重新操作',1, array(), false);
// sys_msg('網域自動新增失敗,請重新操作',1, array(), false);
$cf_iden=0;
}else{
$cf_iden=$ad_ret;
}

View File

@ -114,12 +114,11 @@ class cloudflare
$t_result = curl_exec($ch);
curl_close($ch);
$result=json_decode($t_result,true);
print_r($result);
if($result['success']){
return $result['result']['id'];
}
return false;
return false;
}
function get_record($name){