* Revert common model loaded.

This commit is contained in:
caoyanyi
2023-10-17 13:06:56 +08:00
parent a3ed77318a
commit 01fe6573a9
+4
View File
@@ -341,6 +341,7 @@ class install extends control
*/
public function app()
{
$this->loadModel('common');
$this->loadModel('solution');
$cloudSolution = $this->loadModel('store')->getSolution('name', 'devops');
$components = $this->loadModel('store')->solutionConfig('name', 'devops');
@@ -396,6 +397,7 @@ class install extends control
*/
public function ajaxProgress($id)
{
$this->loadModel('common');
$solution = $this->loadModel('solution')->getByID($id);
$logs = array();
if(in_array($solution->status, array('installing', 'installed')))
@@ -462,6 +464,7 @@ class install extends control
*/
public function ajaxUninstall($solutionID)
{
$this->loadModel('common');
$this->loadModel('solution')->uninstall($solutionID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
@@ -478,6 +481,7 @@ class install extends control
*/
public function ajaxCheck()
{
$this->loadModel('common');
$data = fixer::input('post')->get();
$appMap = $this->loadModel('store')->getAppMapByNames($data->apps);
$resources = array();