From 2098f485c7b86b50acea2fbd636614dc72435198 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Sun, 23 Apr 2023 16:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9miss=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E4=B8=8D=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemRouteServices.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crmeb/app/services/system/SystemRouteServices.php b/crmeb/app/services/system/SystemRouteServices.php index 20b17b1ac..3eab6d611 100644 --- a/crmeb/app/services/system/SystemRouteServices.php +++ b/crmeb/app/services/system/SystemRouteServices.php @@ -204,8 +204,13 @@ class SystemRouteServices extends BaseServices $cateId = $commmonId; } else { if (!isset($item['option']['cate_name'])) { - $rule = explode('/', $item['rule']); - $cateId = $this->topCateId($app, $rule[0]); + if (strstr($item['rule'], '') === false) { + $rule = explode('/', $item['rule']); + $cateId = $this->topCateId($app, $rule[0]); + } else { + //miss路由不写入 + continue; + } } else { $cateId = $this->topCateId($app, $item['option']['cate_name']); }