Explorar el Código

更新后台路由

evoxwht hace 2 años
padre
commit
476ae9b535
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. 4 5
      crmeb/route/route.php

+ 4 - 5
crmeb/route/route.php

@@ -12,18 +12,17 @@ Route::miss(function () {
     }
     }
 
 
     switch (strtolower($appName)) {
     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':
         case 'home':
             if (request()->isMobile()) {
             if (request()->isMobile()) {
                 return redirect(app()->route->buildUrl('/'));
                 return redirect(app()->route->buildUrl('/'));
             } else {
             } else {
                 return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
                 return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
             }
             }
-        case 'kefu':
-            return view(app()->getRootPath() . 'public'  . DS . 'system.html');
         case 'pages':
         case 'pages':
-            return view(app()->getRootPath() . 'public' .DS . 'index.html');
+            return view(app()->getRootPath() . 'public' . DS . 'index.html');
         default:
         default:
             if (!request()->isMobile() && is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
             if (!request()->isMobile() && is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
                 return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
                 return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');