* Adjust code
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user