* Adjust code

This commit is contained in:
zenggang
2023-09-21 06:43:19 +00:00
parent 0f90702e2c
commit bf79d3dcaa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -335,7 +335,7 @@ class cneModel extends model
$customDomain = $this->loadModel('setting')->getItem('owner=system&module=common&section=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;