* Adjust code style.

This commit is contained in:
zhujinyong
2021-09-23 10:31:52 +08:00
parent cdcb32548b
commit adcb36c393
4 changed files with 202 additions and 223 deletions
+3 -8
View File
@@ -2145,17 +2145,12 @@ EOT;
$startModulePath = '';
$currentMethod = $this->app->getMethodName();
$users = $this->loadModel('user')->getPairs('noletter');
if($startModule > 0)
{
$startModule = $this->tree->getById($startModule);
if($startModule) $startModulePath = $startModule->path . '%';
}
$docs = $this->dao->select('*')->from(TABLE_API)
$docs = $this->dao->select('*')->from(TABLE_API)
->where('lib')->eq($rootID)
->andWhere('deleted')->eq(0)
->fetchAll();
$moduleDocs = [];
$moduleDocs = array();
foreach($docs as $doc)
{
if(!$this->checkPrivDoc($doc)) continue;
@@ -2163,7 +2158,7 @@ EOT;
$moduleDocs[$doc->module][] = $doc;
}
$treeMenu = [];
$treeMenu = array();
$query = $this->dao->select('*')->from(TABLE_MODULE)
->where('root')->eq((int)$rootID)
->andWhere('type')->eq('api')