From 0638963fa13a983f4a4cb566cb12da75b3020b8f Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 4 Jun 2024 10:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/system_store/SystemStoreMenu.php | 31 +++++++++++++++++++ app/store/logic/auth/MenuLogic.php | 5 +-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 app/common/model/system_store/SystemStoreMenu.php diff --git a/app/common/model/system_store/SystemStoreMenu.php b/app/common/model/system_store/SystemStoreMenu.php new file mode 100644 index 000000000..827a7a273 --- /dev/null +++ b/app/common/model/system_store/SystemStoreMenu.php @@ -0,0 +1,31 @@ +order(['sort' => 'desc', 'id' => 'asc']) - ->select(); + ->select()->toArray(); return linear_to_tree($menu, 'children'); }