* [misc] Add comments.

This commit is contained in:
wangyuting
2024-06-17 19:53:22 +08:00
committed by 刘刚
parent 605e29745a
commit 24d1833415
+3 -1
View File
@@ -153,7 +153,7 @@ class router extends baseRouter
}
}
if($this->config->edition != 'open') $this->mergeFlowLang();
if($moduleName == 'common' && $this->config->edition != 'open') $this->mergeFlowLang();
/* Merge from the db lang. */
if($moduleName != 'common' and isset($lang->db->custom[$moduleName]))
@@ -219,6 +219,8 @@ class router extends baseRouter
{
if(!$this->checkInstalled() || !$this->isServing()) return;
/* 12版本升级到付费版时,workflow表不存在。 */
/* When upgrading from version 12 to the paid version, the workflow table does not exist. */
try
{
$flows = $this->dbQuery('SELECT * FROM ' . TABLE_WORKFLOW . " WHERE `buildin` = 0 AND `vision` = '{$this->config->vision}' AND status = 'normal' AND type = 'flow' AND `navigator` = 'primary'")->fetchAll();