小说路由增加多种规则

This commit is contained in:
make
2025-09-03 22:33:32 +08:00
parent 8f15c8f455
commit 0f02b69794

View File

@@ -137,6 +137,22 @@ $arrRoutes = [
'/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', '/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', '/novel-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', '/book-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
// 兼容 没有name 的路径模板
'/xiaoshuo/-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel/-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book/-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/xiaoshuo--:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel--:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book--:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
// 兼容 没有name 的路径模板
'/xiaoshuo/:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel/:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book/:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/xiaoshuo-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
], ],
// 最新章节-特殊页面处理 // 最新章节-特殊页面处理
@@ -147,6 +163,22 @@ $arrRoutes = [
'/xiaoshuo-:name-:intNovelId/chapter/latest', '/xiaoshuo-:name-:intNovelId/chapter/latest',
'/novel-:name-:intNovelId/chapter/latest', '/novel-:name-:intNovelId/chapter/latest',
'/book-:name-:intNovelId/chapter/latest', '/book-:name-:intNovelId/chapter/latest',
// 兼容 没有name 的路径模板
'/xiaoshuo/-:intNovelId/chapter/latest',
'/novel/-:intNovelId/chapter/latest',
'/book/-:intNovelId/chapter/latest',
'/xiaoshuo--:intNovelId/chapter/latest',
'/novel--:intNovelId/chapter/latest',
'/book--:intNovelId/chapter/latest',
// 兼容 没有name 的路径模板
'/xiaoshuo/:intNovelId/chapter/latest',
'/novel/:intNovelId/chapter/latest',
'/book/:intNovelId/chapter/latest',
'/xiaoshuo-:intNovelId/chapter/latest',
'/novel-:intNovelId/chapter/latest',
'/book-:intNovelId/chapter/latest',
], ],
// 目录相关路径 // 目录相关路径
@@ -157,6 +189,22 @@ $arrRoutes = [
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', '/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]', '/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]',
'/book/:name-:intNovelId/table/:strOrder/[:intPage]', '/book/:name-:intNovelId/table/:strOrder/[:intPage]',
// 兼容 没有name 的路径模板
'/xiaoshuo/-:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/-:intNovelId/catalog/:strOrder/[:intPage]',
'/book/-:intNovelId/table/:strOrder/[:intPage]',
'/xiaoshuo/-:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/-:intNovelId/catalog/:strOrder/[:intPage]',
'/book/-:intNovelId/table/:strOrder/[:intPage]',
// 兼容 没有name 的路径模板
'/xiaoshuo/:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/:intNovelId/catalog/:strOrder/[:intPage]',
'/book/:intNovelId/table/:strOrder/[:intPage]',
'/xiaoshuo/:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/:intNovelId/catalog/:strOrder/[:intPage]',
'/book/:intNovelId/table/:strOrder/[:intPage]',
], ],
// 伪小说详情相关路径 // 伪小说详情相关路径
@@ -172,6 +220,32 @@ $arrRoutes = [
'/kan-book-:name-:intNovelId-:intForgeId', '/kan-book-:name-:intNovelId-:intForgeId',
'/see-novel-:name-:intNovelId-:intForgeId', '/see-novel-:name-:intNovelId-:intForgeId',
'/good-book-:name-:intNovelId-:intForgeId', '/good-book-:name-:intNovelId-:intForgeId',
// 兼容 没有name 的路径模板
'/kan-xiaoshuo/-:intNovelId-:intForgeId',
'/kan-book/-:intNovelId-:intForgeId',
'/kan-novel/-:intNovelId-:intForgeId',
'/show-novel/-:intNovelId-:intForgeId',
'/seo-book/-:intNovelId-:intForgeId',
'/show-xiaoshuo--:intNovelId-:intForgeId',
'/kan-xiaoshuo--:intNovelId-:intForgeId',
'/kan-novel--:intNovelId-:intForgeId',
'/kan-book--:intNovelId-:intForgeId',
'/see-novel--:intNovelId-:intForgeId',
'/good-book--:intNovelId-:intForgeId',
// 兼容 没有name 的路径模板
'/kan-xiaoshuo/:intNovelId-:intForgeId',
'/kan-book/:intNovelId-:intForgeId',
'/kan-novel/:intNovelId-:intForgeId',
'/show-novel/:intNovelId-:intForgeId',
'/seo-book/:intNovelId-:intForgeId',
'/show-xiaoshuo-:intNovelId-:intForgeId',
'/kan-xiaoshuo-:intNovelId-:intForgeId',
'/kan-novel-:intNovelId-:intForgeId',
'/kan-book-:intNovelId-:intForgeId',
'/see-novel-:intNovelId-:intForgeId',
'/good-book-:intNovelId-:intForgeId',
], ],
// 小说详情相关路径 // 小说详情相关路径
@@ -182,6 +256,22 @@ $arrRoutes = [
'/xiaoshuo-:name-:intNovelId', '/xiaoshuo-:name-:intNovelId',
'/novel-:name-:intNovelId', '/novel-:name-:intNovelId',
'/book-:name-:intNovelId', '/book-:name-:intNovelId',
// 兼容 没有name 的路径模板
'/xiaoshuo/-:intNovelId',
'/novel/-:intNovelId',
'/book/-:intNovelId',
'/xiaoshuo--:intNovelId',
'/novel--:intNovelId',
'/book--:intNovelId',
// 兼容 没有name 的路径模板
'/xiaoshuo/:intNovelId',
'/novel/:intNovelId',
'/book/:intNovelId',
'/xiaoshuo-:intNovelId',
'/novel-:intNovelId',
'/book-:intNovelId',
], ],
// 书库 // 书库