diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index e68fd86..e07cd26 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -137,6 +137,22 @@ $arrRoutes = [ '/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', '/novel-: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', '/novel-: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]', '/novel/:name-:intNovelId/catalog/: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', '/see-novel-: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', '/novel-: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', ], // 书库