debug
This commit is contained in:
@@ -7,6 +7,11 @@ use app\home\controller\Novel;
|
||||
use app\home\controller\User;
|
||||
use think\facade\Route;
|
||||
|
||||
|
||||
Route::get('article/fenlei/:category', function (\think\Request $Request) {
|
||||
return view('test/test01/index.html');
|
||||
});
|
||||
|
||||
/**
|
||||
* 路由配置文件
|
||||
*/
|
||||
@@ -103,7 +108,7 @@ $arrRoutes = [
|
||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
@@ -196,7 +201,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
// 首页
|
||||
if ($platform == 'h5') {
|
||||
Route::get($strRoute, [Index::class, 'index'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
}else{
|
||||
} else {
|
||||
Route::get($strRoute, [Index::class, 'getPcIndex'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
use app\model\AutoSwitchViewModel;
|
||||
use app\services\SiteContext;
|
||||
|
||||
return AutoSwitchViewModel::getViewConfig();
|
||||
return app(SiteContext::class)->getViewConfig();
|
||||
|
||||
Reference in New Issue
Block a user