1.小说搜索重定向首页
2.伪造小说恢复修改前,直接使用小说详情同一个html 3.限制伪造谷歌爬虫ua
This commit is contained in:
@@ -251,7 +251,7 @@ $arrRoutes = [
|
||||
'/paihangbang/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
|
||||
],
|
||||
//排行榜
|
||||
//排行榜
|
||||
'rank' => ['/paihang/all', '/rank/all', '/paihang-quan', '/top/all', '/paihang-bang', '/ranks/all'],
|
||||
// 男生
|
||||
'boys' => ['/nansheng-xiaoshuo', '/boys-novel', '/nansheng-shu', '/man-read', '/nansheng-book', '/male-novels'],
|
||||
@@ -596,9 +596,13 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
|
||||
case 'kan-novel':
|
||||
//伪造小说详情
|
||||
$strView = 'pc/getKanNovelInfo.html';
|
||||
// $strView = 'pc/getKanNovelInfo.html';
|
||||
// if ($platform == 'h5') {
|
||||
// $strView = 'novel/getKanNovelInfo.html';
|
||||
// }
|
||||
$strView = 'pc/getNovelInfo.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'novel/getKanNovelInfo.html';
|
||||
$strView = 'novel/getNovelInfo.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
@@ -716,26 +720,26 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
|
||||
case 'search':
|
||||
//搜素
|
||||
$strView = 'pc/getSearchNovel.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'novel/getSearchNovel.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})->ext('html');
|
||||
break;
|
||||
// $strView = 'pc/getSearchNovel.html';
|
||||
// if ($platform == 'h5') {
|
||||
// $strView = 'novel/getSearchNovel.html';
|
||||
// }
|
||||
// Route::get($strRoute, function () use ($strView) {
|
||||
// return view($strView);
|
||||
// })->ext('html');
|
||||
// break;
|
||||
|
||||
// 首页
|
||||
// if ($platform == 'h5') {
|
||||
// Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
// return view($SiteContext->getHomeView('h5'));
|
||||
// });
|
||||
// } else {
|
||||
// Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
// return view($SiteContext->getHomeView('pc'));
|
||||
// });
|
||||
// }
|
||||
// break;
|
||||
if ($platform == 'h5') {
|
||||
Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
return view($SiteContext->getHomeView('h5'));
|
||||
});
|
||||
} else {
|
||||
Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
return view($SiteContext->getHomeView('pc'));
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
||||
case 'user':
|
||||
//用户中心
|
||||
|
||||
Reference in New Issue
Block a user