diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 9ba6c7f..494b872 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -21,8 +21,8 @@ Route::get('bookshelf', [User::class,'getBookShelf'])->ext('html')->append(['boo Route::get('/pc/bookshelf', [User::class,'getBookShelf'])->ext('html')->append(['boolIsMobile' => false]); //排行榜 -Route::get('paihang', [Novel::class,'getNovelRank'])->append(['boolIsMobile' => true]); -Route::get("/pc/paihang", [Novel::class,'getNovelRank'])->append(['boolIsMobile' => false]); +Route::get('paihang/all', [Novel::class,'getNovelRank'])->append(['boolIsMobile' => true]); +Route::get("/pc/paihang/all", [Novel::class,'getNovelRank'])->append(['boolIsMobile' => false]); // 男生/女生 - grok 推荐最优方案 Route::get('/nansheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => true, 'strChannel' => 'boys']); @@ -64,9 +64,6 @@ Route::get('/pc/shuku/:strNovelChannel-:strCategory-:strStatus-:intPage', [Novel // ->ext('html'); - - - // 文章 列表 Route::get('/article/list-[:intCategoryId]-[:intPage]', [Novel::class,'getArticleList'])->ext('html')->append(['boolIsMobile' => true]); Route::get('/pc/article/list-[:intCategoryId]-[:intPage]', [Novel::class,'getArticleList'])->ext('html')->append(['boolIsMobile' => false]); @@ -77,7 +74,6 @@ Route::get('/pc/article/list', [Novel::class,'getArticleList'])->ext('html')->ap Route::get('/article/info-:intArticleId', [Novel::class,'getArticleInfo'])->ext('html')->append(['boolIsMobile' => true]); Route::get('/pc/article/info-:intArticleId', [Novel::class,'getArticleInfo'])->ext('html')->append(['boolIsMobile' => false]); - // 小说详情 Route::get('/info/:intNovelId', [Novel::class, 'getNovelInfo'])->ext('html')->append(['boolIsMobile' => true]); Route::get('/pc/info/:intNovelId', [Novel::class, 'getNovelInfo'])->ext('html')->append(['boolIsMobile' => false]); @@ -114,6 +110,7 @@ Route::get('/pc/books/:name-:n_id/chapter/latest', [Novel::class, 'getNovelNewsC ->append(['boolIsMobile' => false, 'intUriType' => 1]) ->pattern(['n_id' => '\d+','name' => '[\w-]+',]) ->ext('html'); + // 小说章节 Route::get('chapter/:intNovelId-:intChapterId-[:intChapterPage]', 'Novel/getNovelChapter')->ext('html')->append(['boolIsMobile' => true]); Route::get('/pc/chapter/:intNovelId-:intChapterId-[:intChapterPage]', 'Novel/getNovelChapter')->ext('html')->append(['boolIsMobile' => false]); @@ -125,7 +122,6 @@ Route::get('pc/chapters/:intNovelId-[:intPage]-[:strSort]', [Novel::class,'getNo Route::get('/chapters', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => true]); Route::get('pc/chapters', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => false]); - // 搜索小说 Route::get('search', [Novel::class,'getSearchNovel'])->ext('html')->append(['boolIsMobile' => true]); Route::get('pc/search', [Novel::class,'getSearchNovel'])->ext('html')->append(['boolIsMobile' => false]); diff --git a/code/app/home/view/kuangyu/baseH5.html b/code/app/home/view/kuangyu/baseH5.html index c4a4fbd..52c2b29 100644 --- a/code/app/home/view/kuangyu/baseH5.html +++ b/code/app/home/view/kuangyu/baseH5.html @@ -68,7 +68,7 @@ 书库 - + 排行 diff --git a/code/app/home/view/kuangyu/basePc.html b/code/app/home/view/kuangyu/basePc.html index 3470c9a..a20c3d7 100644 --- a/code/app/home/view/kuangyu/basePc.html +++ b/code/app/home/view/kuangyu/basePc.html @@ -36,7 +36,7 @@ 书库
  • - 排行 + 排行
  • 文章