From baf0dd394db114ab39b382ea32f8a34875291767 Mon Sep 17 00:00:00 2001 From: dean Date: Wed, 27 Sep 2023 23:36:58 +0800 Subject: [PATCH] v8.0.5 --- README.md | 3 +++ src/admin/controller/PluginController.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1d6ccf..3b3792a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ ThinkCMF核心API扩展 =============== ## 更新日志 +### v8.0.5 +* 规范API返回格式 + ### v8.0.4 * 规范API返回格式 diff --git a/src/admin/controller/PluginController.php b/src/admin/controller/PluginController.php index 1919808..f0ea4ab 100644 --- a/src/admin/controller/PluginController.php +++ b/src/admin/controller/PluginController.php @@ -47,7 +47,7 @@ public function index() $pluginModel = new PluginModel(); $plugins = $pluginModel->getList(); $plugins = array_values($plugins); - $this->success("success", ['plugins' => $plugins, 'total' => count($plugins)]); + $this->success("success", ['list' => $plugins, 'total' => count($plugins)]); } /**