更新后台路由

This commit is contained in:
evoxwht 2023-04-06 10:33:57 +08:00
parent ed53670d81
commit 476ae9b535

View File

@ -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');