* [task#132863,doing,0.3h] add cron for system init.

This commit is contained in:
caoyanyi
2024-11-27 17:29:33 +08:00
committed by 田淑杰
parent ba37987f31
commit 3118495f5d
3 changed files with 49 additions and 0 deletions
+18
View File
@@ -1,5 +1,8 @@
<?php
declare(strict_types=1);
use zin\to;
/**
* The control file of system module of ZenTaoPMS.
*
@@ -695,4 +698,19 @@ class system extends control
if(dao::isError()) return $this->sendError(dao::getError());
$this->sendSuccess(array('load' => true));
}
/**
* 初始化产品下的应用数据(仅用于第一次安装)。
* Init the application data of the product.
*
* @access public
* @return void
*/
public function initSystem()
{
$releaseList = $this->loadModel('release')->getListBySystem(array('0'));
if(!$releaseList) return false;
return $this->system->initSystem();
}
}