From a6c1d7c7771a47cf02ae0543e1b312a78cf5b2ed Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Wed, 26 Apr 2023 11:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemRouteServices.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crmeb/app/services/system/SystemRouteServices.php b/crmeb/app/services/system/SystemRouteServices.php index f7d72c9b3..72efb6457 100644 --- a/crmeb/app/services/system/SystemRouteServices.php +++ b/crmeb/app/services/system/SystemRouteServices.php @@ -97,8 +97,11 @@ class SystemRouteServices extends BaseServices foreach ($list as $key => $item) { if (!empty($item['children'])) { foreach ($item['children'] as $k => $v) { - if (isset($v['cate_id']) && isset($v['method']) && $v['method'] === 'DELETE') { - $v['method'] = 'DEL'; + if (isset($v['cate_id']) && isset($v['method'])) { + if ($v['method'] === 'DELETE') { + $v['method'] = 'DEL'; + } + $v['pid'] = $v['cate_id']; $list[$key]['children'][$k] = $v; } }