debug
This commit is contained in:
@@ -22,7 +22,7 @@ $arrRoutes = [
|
||||
// H5/PC 端前缀
|
||||
'prefixes' => [
|
||||
'pc' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian'],
|
||||
'h5' => '',
|
||||
'h5' => ['','/nindex'],
|
||||
],
|
||||
|
||||
// 通用路径别名
|
||||
@@ -191,6 +191,8 @@ $arrRoutes = [
|
||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
// 首页 - 如果info_id 》 0
|
||||
'nindex' => ['/nindex'],
|
||||
|
||||
],
|
||||
|
||||
@@ -392,6 +394,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'nindex':
|
||||
// 首页
|
||||
$strView = 'pc/index.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'index/index.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
});
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user