- Delete api doclib code.

This commit is contained in:
songchenxuan
2023-10-16 14:24:14 +08:00
parent 5c87e86180
commit 54ccc20a80
-4
View File
@@ -282,10 +282,6 @@ class install extends control
if($this->config->edition != 'open') $this->loadModel('upgrade')->processDataset();
$httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') $httpType = 'https';
if(isset($_SERVER['REQUEST_SCHEME']) and strtolower($_SERVER['REQUEST_SCHEME']) == 'https') $httpType = 'https';
if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, "{$httpType}://{$_SERVER['HTTP_HOST']}" . $this->app->config->webRoot . 'api.php/v1', '16.0');
$this->loadModel('metric')->updateMetricDate();
$link = $this->config->inQuickon ? inlink('app') : inlink('step6');