From 508aa14e608efeaabe37a222c1636344e8c103b7 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 30 Mar 2023 17:41:42 +0800 Subject: [PATCH] * Modify api data type. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index abef4d33a9..ba8056d1cd 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2827,7 +2827,7 @@ class docModel extends model $item = new stdclass(); $item->id = $module->id; $item->name = $module->name; - $item->type = $module->type; + $item->type = $module->type == 'api' ? 'apiDoc' : $module->type; $item->active = $module->id == $moduleID ? 1 : 0; $item->children = $this->getModuleTree($rootID, $moduleID, $type, $module->id, $modules);