From bb714a598b7cf385a09a9f4583b9f233cda59cdf Mon Sep 17 00:00:00 2001 From: apple Date: Fri, 1 May 2026 20:54:27 +0800 Subject: [PATCH] fix admin route html response --- pro_v3.5.1/route/zroute.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pro_v3.5.1/route/zroute.php b/pro_v3.5.1/route/zroute.php index 7adfe833..1e0e472f 100644 --- a/pro_v3.5.1/route/zroute.php +++ b/pro_v3.5.1/route/zroute.php @@ -28,7 +28,7 @@ Route::group('/', function () { $pathInfoArr = explode('/', $pathInfo); $admin = $pathInfoArr[0] ?? ''; if ($admin === 'admin') { - return __view(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'); + return Response::create(file_get_contents(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'), 'html'); } else { return Response::create()->code(404); } @@ -55,7 +55,7 @@ Route::group('/', function () { $pathInfoArr = explode('/', $pathInfo); $admin = $pathInfoArr[0] ?? ''; if ('kefu' === $admin) { - return __view(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'); + return Response::create(file_get_contents(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'), 'html'); } else { return Response::create()->code(404); } @@ -91,7 +91,7 @@ Route::group('/', function () { $pathInfoArr = explode('/', $pathInfo); $admin = $pathInfoArr[0] ?? ''; if ('supplier' === $admin) { - return __view(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'); + return Response::create(file_get_contents(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'), 'html'); } else { return Response::create()->code(404); }