+ [task#116512] Add the upgrade method.

This commit is contained in:
dingguodong
2024-06-12 10:21:26 +08:00
committed by caoyanyi
parent cfe76f5e68
commit 042a24cd24
+26
View File
@@ -306,6 +306,32 @@ class system extends control
$this->send($result + array('load' => true, 'callback' => "deleteInProcess('$backupName')"));
}
/**
* 执行系统升级。
* Upgrade ths quickon system.
*
* @param string $edition
* @return void
*/
public function upgrade($backup = 'yes', $edition = 'open')
{
session_write_close();
set_time_limit(0);
$this->loadModel('action')->create('system', 0, 'upgradeSystem');
$rawResult = $this->cne->upgrade($edition);
if($rawResult)
{
if($rawResult->code == 200)
$this->sendSuccess();
else
$this->sendError($rawResult->message);
}
$this->sendError($this->lang->CNE->serverError);
}
/**
* AJAX: 获取备份列表。
* AJAX: Get the backup list.