From 476ae9b53515618fd3bf38d9f6c0c8bc63cc13f1 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Thu, 6 Apr 2023 10:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E5=8F=B0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/route/route.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crmeb/route/route.php b/crmeb/route/route.php index 3c6768124..71bb5ab33 100644 --- a/crmeb/route/route.php +++ b/crmeb/route/route.php @@ -12,18 +12,17 @@ Route::miss(function () { } switch (strtolower($appName)) { - case config('app.admin_prefix','admin'): - return view(app()->getRootPath() . 'public' . DS . 'system.html'); + case config('app.admin_prefix', 'admin'): + case 'kefu': + return view(app()->getRootPath() . 'public' . DS . config('app.admin_prefix', 'admin') . DS . 'system.html'); case 'home': if (request()->isMobile()) { return redirect(app()->route->buildUrl('/')); } else { return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html'); } - case 'kefu': - return view(app()->getRootPath() . 'public' . DS . 'system.html'); case 'pages': - return view(app()->getRootPath() . 'public' .DS . 'index.html'); + return view(app()->getRootPath() . 'public' . DS . 'index.html'); default: if (!request()->isMobile() && is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) { return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');