- [misc] delete unused code.

This commit is contained in:
caoyanyi
2025-04-08 08:53:42 +08:00
committed by 刘刚
parent aa33672399
commit 73f264cf88
2 changed files with 1 additions and 111 deletions
+1 -36
View File
@@ -384,9 +384,7 @@ class install extends control
$this->install->enableCache();
$skipApp = (string)getenv('ZT_SKIP_DEVOPS_INIT');
$link = ($this->config->inQuickon && (!$skipApp || $skipApp == 'false')) ? inlink('app') : inlink('step6');
return $this->send(array('result' => 'success', 'load' => $link));
return $this->send(array('result' => 'success', 'load' => inlink('step6')));
}
if($this->config->inQuickon) $this->installZen->saveConfigFile();
@@ -452,39 +450,6 @@ class install extends control
$this->display();
}
/**
* 安装devops相关应用。
* Install apps of devops.
*
* @access public
* @return void
*/
public function app()
{
$this->loadModel('common');
$this->loadModel('solution');
$cloudSolution = $this->loadModel('store')->getSolution('name', 'devops');
$components = $this->loadModel('store')->solutionConfig('name', 'devops');
if($_POST)
{
$solution = $this->solution->create($cloudSolution, $components);
if(dao::isError()) $this->send(array('result' => 'failure', 'message' => dao::getError()));
$this->send(array('result' => 'success', 'data' => $solution, 'locate' => $this->inLink('progress', "id={$solution->id}&install=true")));
}
$category = helper::arrayColumn($components->category, 'name');
$category = array_filter($category, function($cate){return $cate !== 'pms';});
$this->view->title = $this->lang->solution->install;
$this->view->cloudSolution = $cloudSolution;
$this->view->components = $this->installZen->processComponents($components, $cloudSolution);
$this->view->category = $category;
$this->display();
}
/**
* 展示应用安装进度。
* Show installation progress of solution.