bugfix 20240320
This commit is contained in:
parent
03e75ddb26
commit
f42f397b1a
@ -201,6 +201,7 @@ if ($_REQUEST['act'] == 'edit') {
|
||||
}
|
||||
}
|
||||
$cf = $db->getRow("SELECT domain,cf_iden FROM " . $ecs->table('hs_web') . "WHERE id=" . $_REQUEST['id']);
|
||||
|
||||
if (strlen($cf['domain'])) {
|
||||
if ($cf['domain'] != $_POST['domain']) {
|
||||
/* 更新domain */
|
||||
@ -213,7 +214,11 @@ if ($_REQUEST['act'] == 'edit') {
|
||||
}
|
||||
include_once(ROOT_PATH . 'back/includes/cls_cloudflare.php');
|
||||
$cf_obj = new cloudflare;
|
||||
$ret = $cf_obj->update_domain($cf['cf_iden'], trim($sub_domain));
|
||||
if(strlen($cf['cf_iden'])>0){
|
||||
$ret = $cf_obj->update_domain($cf['cf_iden'], trim($sub_domain));
|
||||
}else{
|
||||
$ad_ret = $cf_obj->add_domain(trim($sub_domain));
|
||||
}
|
||||
if (!$ret) {
|
||||
sys_msg('網域自動修改失敗,請重新操作',1, array(), false);
|
||||
// $cf_iden = 0;
|
||||
@ -361,7 +366,8 @@ if ($_REQUEST['act'] == 'edit') {
|
||||
|
||||
/*------------------------------------------------------ */
|
||||
//-- 批量操作
|
||||
/*------------------------------------------------------ */ elseif ($_REQUEST['act'] == 'batch') {
|
||||
/*------------------------------------------------------ */
|
||||
elseif ($_REQUEST['act'] == 'batch') {
|
||||
$code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']);
|
||||
|
||||
/* 取得要操作的商品編號 */
|
||||
|
Loading…
Reference in New Issue
Block a user