* Modify api doc style.

This commit is contained in:
caoyanyi
2023-03-28 16:09:56 +08:00
parent a85291e639
commit 58c2ca3a27
17 changed files with 603 additions and 232 deletions
+9 -1
View File
@@ -47,7 +47,11 @@ class docModel extends model
->where('deleted')->eq(0)
->andWhere('type')->eq('api')
->beginIF(!empty($appendLib))->orWhere('id')->eq($appendLib)->fi()
->beginIF(!empty($objectType))->andWhere($objectType)->eq($objectID)->fi()
->beginIF(!empty($objectType) && $objectID > 0)->andWhere($objectType)->eq($objectID)->fi()
->beginIF($objectType == 'nolink')
->andWhere('product')->eq(0)
->andWhere('project')->eq(0)
->fi()
->orderBy('`order`_asc, id_desc')
->fetchAll('id');
@@ -2903,6 +2907,10 @@ class docModel extends model
$libTree[$type][] = $annex;
}
elseif($type == 'api')
{
$libTree[$type] = array_merge($libTree[$type], $apiLibs);
}
$libTree = array_values($libTree[$type]);
return $libTree;