小说第一模板 url 设计
This commit is contained in:
@@ -24,13 +24,19 @@ Route::get('/pc/bookshelf', [User::class,'getBookShelf'])->ext('html')->append([
|
||||
Route::get('paihang/all', [Novel::class,'getNovelRank'])->append(['boolIsMobile' => true]);
|
||||
Route::get("/pc/paihang/all", [Novel::class,'getNovelRank'])->append(['boolIsMobile' => false]);
|
||||
|
||||
// 男生/女生 - grok 推荐最优方案
|
||||
/**
|
||||
* 男生/女生 - grok 推荐最优方案
|
||||
*
|
||||
*/
|
||||
Route::get('/nansheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => true, 'strChannel' => 'boys']);
|
||||
Route::get('/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => false, 'strChannel' => 'girls']);
|
||||
Route::get('/pc/nansheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => false, 'strChannel' => 'boys']);
|
||||
Route::get('/pc/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => false, 'strChannel' => 'girls']);
|
||||
|
||||
// 书库 - grok 推荐最优方案 /shuku/channel-category-status-page
|
||||
/**
|
||||
* 书库 - grok 推荐最优方案
|
||||
* /shuku/channel-category-status-page
|
||||
*/
|
||||
Route::get('/shuku/all', [Novel::class,'getLibrary'])->append(['boolIsMobile' => true]);
|
||||
Route::get('/pc/shuku/all', [Novel::class,'getLibrary'])->append(['boolIsMobile' => false]);
|
||||
Route::get('/shuku/:strNovelChannel-:strCategory-:strStatus-:intPage', [Novel::class,'getLibrary'])
|
||||
@@ -74,17 +80,13 @@ 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]);
|
||||
Route::get('/novel/:intNovelId', [Novel::class, 'getNovelInfo'])->ext('html')->append(['boolIsMobile' => true]);
|
||||
Route::get('/pc/novel/:intNovelId', [Novel::class, 'getNovelInfo'])->ext('html')->append(['boolIsMobile' => false]);
|
||||
|
||||
// example
|
||||
// /book/{strPinYin}-{intNId}.html
|
||||
// /novel/{strPinYin}-{intNId}.html
|
||||
// /novel-{strPinYin}-{intNId}.html
|
||||
// /book-{strPinYin}-{intNId}.html
|
||||
/**
|
||||
* 小说详情
|
||||
* /book/{strPinYin}-{intNId}.html
|
||||
* /novel/{strPinYin}-{intNId}.html
|
||||
* /novel-{strPinYin}-{intNId}.html
|
||||
* /book-{strPinYin}-{intNId}.html
|
||||
*/
|
||||
Route::get('/pc/book/:name-:n_id', [Novel::class, 'getNovelInfo'])
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 1])
|
||||
->pattern(['n_id' => '\d+','name' => '[\w-]+',])
|
||||
@@ -110,17 +112,34 @@ 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]);
|
||||
Route::get('/pc/books/:intNovelId-:intChapterId-[:intChapterPage]', 'Novel/getNovelChapter')->ext('html')->append(['boolIsMobile' => false]);
|
||||
|
||||
// 小说目录
|
||||
Route::get('/chapters/:intNovelId-[:intPage]-[:strSort]', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => true]);
|
||||
Route::get('pc/chapters/:intNovelId-[:intPage]-[:strSort]', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => false]);
|
||||
Route::get('/chapters', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => true]);
|
||||
Route::get('pc/chapters', [Novel::class,'getNovelChapterAll'])->ext('html')->append(['boolIsMobile' => false]);
|
||||
/**
|
||||
* 小说章节
|
||||
* /xiaoshuo/小说拼音-小说id/zhang-章节排序/章节分页
|
||||
* /xiaoshuo/小说拼音-小说id/di-章节排序-zhang/章节分页
|
||||
*/
|
||||
Route::get('/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
|
||||
->append(['boolIsMobile' => true, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+','name' => '[\w-]+','intChapterId' => '\d+','intChapterPage' => '\d+']);
|
||||
|
||||
Route::get('/pc/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+','name' => '[\w-]+','intChapterSort' => '\d+','intChapterPage' => '\d+']);
|
||||
|
||||
|
||||
/**
|
||||
* 小说目录页面
|
||||
* /xiaoshuo/[name]-[novel-id]/mulu/order/[page]
|
||||
*/
|
||||
Route::get('/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::class, 'getNovelChapterAll'])
|
||||
->append(['boolIsMobile' => true, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+','name' => '[\w-]+','strOrder' => 'zheng|dao','intPage' => '\d+']);
|
||||
|
||||
Route::get('/pc/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::class, 'getNovelChapterAll'])
|
||||
->append(['boolIsMobile' => false, 'intUriType' => 1])
|
||||
->pattern(['intNovelId' => '\d+','name' => '[\w-]+','strOrder' => 'zheng|dao','intPage' => '\d+']);
|
||||
|
||||
|
||||
|
||||
// 搜索小说
|
||||
Route::get('search', [Novel::class,'getSearchNovel'])->ext('html')->append(['boolIsMobile' => true]);
|
||||
|
||||
Reference in New Issue
Block a user