From bf79d3dcaa2d93f9aadb1cd854ece05863003c96 Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 21 Sep 2023 06:43:19 +0000 Subject: [PATCH] * Adjust code --- config/config.php | 2 +- module/cne/model.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.php b/config/config.php index cc493d8ad8..4b79949b0b 100644 --- a/config/config.php +++ b/config/config.php @@ -176,7 +176,7 @@ $config->CNE->api->headers = array('Content-Type: application/json'); $config->CNE->api->channel = 'stable'; $config->CNE->app = new stdclass; -$config->CNE->app->domain = 'dev.haogs.cn'; +$config->CNE->app->domain = ''; $config->cloud = new stdclass; $config->cloud->api = new stdclass; diff --git a/module/cne/model.php b/module/cne/model.php index ff9cc45a7b..ff69586d1b 100644 --- a/module/cne/model.php +++ b/module/cne/model.php @@ -335,7 +335,7 @@ class cneModel extends model $customDomain = $this->loadModel('setting')->getItem('owner=system&module=common§ion=domain&key=customDomain'); if($customDomain) return $customDomain; - return getenv('APP_DOMAIN') ? getenv('APP_DOMAIN') : $this->config->CNE->app->domain; + return getenv('APP_DOMAIN'); } /** @@ -859,7 +859,7 @@ class cneModel extends model "type" => "secret" ) ); - + $apiParams = new stdclass; $apiParams->cluster = ''; $apiParams->namespace = $instance->spaceData->k8space;