update: error message

This commit is contained in:
tokumeikoi 2022-05-15 01:12:25 +08:00
parent 649c03c214
commit 7d92714fa9

View File

@ -14,7 +14,6 @@ use Illuminate\Http\Request;
*/
Route::get('/', function (Request $request) {
try {
if (config('v2board.app_url') && config('v2board.safe_mode_enable', 0)) {
if ($request->server('HTTP_HOST') !== parse_url(config('v2board.app_url'))['host']) {
abort(403);
@ -29,9 +28,6 @@ Route::get('/', function (Request $request) {
];
$renderParams['theme_config'] = config('theme.' . config('v2board.frontend_theme', 'v2board'));
return view('theme::' . config('v2board.frontend_theme', 'v2board') . '.dashboard', $renderParams);
} catch (\Illuminate\Foundation\Bootstrap\HandleExceptions $e) {
abort(500, '主题初始化发生错误,请在后台对主题检查或配置后重试。');
}
});
Route::get('/' . config('v2board.frontend_admin_path', 'admin'), function () {