From 9f8d6346110cef49b6431f3661a798b72c7f2413 Mon Sep 17 00:00:00 2001 From: "mzl@hnxinyouhe.com" Date: Thu, 14 Aug 2025 18:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/ResourceService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/service/ResourceService.php b/app/common/service/ResourceService.php index dc0e4e1..ad3f85b 100644 --- a/app/common/service/ResourceService.php +++ b/app/common/service/ResourceService.php @@ -41,12 +41,12 @@ class ResourceService $config['model'] = $this->modelClass; switch ($scene) { case 'default': + $config['where']['system_id'] = ['in', [0, $p['system_id']]]; $config['where']['status'] = 1; $config['order']['sort'] = 'asc'; $config['order']['id'] = 'asc'; break; case 'menuList': - $config['where']['system_id'] = ['in', [0, $p['system_id']]]; $config['where']['status'] = 1; $config['where']['type'] = ['!=', 'permission']; $config['order']['sort'] = 'asc';