debug
This commit is contained in:
@@ -86,347 +86,282 @@ $arrRoutes = [
|
||||
'h5' => ['', '/nindex'],
|
||||
],
|
||||
|
||||
// 通用路径别名
|
||||
'paths' => [
|
||||
// 视频站点url -- start
|
||||
|
||||
/**
|
||||
* 视频分类 分页
|
||||
|
||||
* /目前使用的3种模板:
|
||||
* /vodtype-dian-ying/dong-zuo-pian-1992-zhong-guo-da-lu-news/guo-yu-page1
|
||||
* /vodclass-dong-zuo-pian/dian-ying-1992-zhong-guo-da-lu-news/guo-yu-page1
|
||||
* /vodcategory-dian-ying-1992-dong-zuo-pian/zhong-guo-da-lu-news/guo-yu-page1
|
||||
*
|
||||
* /vodshow/电影/动作片/中国大陆/国语/1992/最新/第一页
|
||||
*/
|
||||
'video_category' => [
|
||||
|
||||
// '/vodtype-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/vodclass-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/vodcategory-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
|
||||
// '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/video-class/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/video-category/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
|
||||
// '/shipinfenlei-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/shipinleixing-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
// '/shipinliebiao-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
|
||||
|
||||
|
||||
// ok -现在使用的9套
|
||||
'/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/vodclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/vodcategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
'/videotype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/videoclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/videocategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
'/shipinfenlei-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/shipinleixing-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/shipinliebiao-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
|
||||
// '/vodtype-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/:strCategory/vodclass-:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/vodcategory-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/:strCategory-vodlist/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
|
||||
// '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage',
|
||||
// '/video-class-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/video-category-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/video-list-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder/page:intPage',
|
||||
|
||||
// '/shipinfenlei-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/shipinleixing-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
// '/shipinliebiao-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
|
||||
],
|
||||
|
||||
// 视频分类 首页
|
||||
'video_category_index' => [
|
||||
'/vodtype/:strParentCategory',
|
||||
'/vodclass/:strParentCategory',
|
||||
'/vodcategory/:strParentCategory',
|
||||
// '/vodlist/:strParentCategory',
|
||||
|
||||
'/video-type/:strParentCategory',
|
||||
'/video-class/:strParentCategory',
|
||||
'/video-category/:strParentCategory',
|
||||
// '/video-list/:strParentCategory',
|
||||
|
||||
'/shipinfenlei/:strParentCategory',
|
||||
'/shipinleixing/:strParentCategory',
|
||||
'/shipinliebiao/:strParentCategory',
|
||||
|
||||
],
|
||||
|
||||
/**
|
||||
* 视频详情
|
||||
* /voddetail/strVideoPinyin-1
|
||||
*/
|
||||
'video_info' => [
|
||||
'/voddetail/:strPinyin-:intVId',
|
||||
'/vodinfo/:strPinyin-:intVId',
|
||||
'/vod/:strPinyin-:intVId',
|
||||
|
||||
'/video-info/:strPinyin-:intVId',
|
||||
'/video-detail/:strPinyin-:intVId',
|
||||
'/video/:strPinyin-:intVId',
|
||||
|
||||
'/shipin/:strPinyin-:intVId',
|
||||
'/shipin-xiangqing/:strPinyin-:intVId',
|
||||
'/shipin-neiron/:strPinyin-:intVId',
|
||||
|
||||
],
|
||||
|
||||
// 视频播放 /vodplay/strPinyin-10-wuxian-1
|
||||
'video_play' => [
|
||||
'/vodplay/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/vodbf/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/vodseed/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
'/video-play/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/video-bofang/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/video-show/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
'/shipin-play/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/shipin-bofang/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/shipin-kan/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
],
|
||||
|
||||
//排行榜
|
||||
'video_rank_index' => ['/paihang/index', '/rank/index', '/paihang-quan', '/top/index', '/paihang-bang', '/ranks/index', '/sort/index', '/order/index', '/phb/index'],
|
||||
|
||||
//排行榜
|
||||
'video_rank_list' => [
|
||||
'/paihang/:strParentCategory/:strCategory/:strSortType',
|
||||
'/rank:strCategory/:strParentCategory-:strSortType',
|
||||
'/:strParentCategory/:strCategory/:strSortType-paihang',
|
||||
|
||||
'/:strCategory/:strParentCategory-:strSortType-top',
|
||||
'/:strParentCategory-:strSortType/paihangbang-:strCategory',
|
||||
'/:strParentCategory-:strSortType/:strCategory-ranks',
|
||||
|
||||
'/sort:strCategory/:strParentCategory-:strSortType',
|
||||
'/:strParentCategory/:strCategory/:strSortType-order',
|
||||
'/:strParentCategory-:strSortType/:strCategory-phb',
|
||||
|
||||
],
|
||||
|
||||
//搜索
|
||||
'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
|
||||
|
||||
|
||||
'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'],
|
||||
|
||||
|
||||
// 视频站点url -- end
|
||||
|
||||
|
||||
|
||||
// 章节相关路径
|
||||
'chapter' => [
|
||||
'/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/novel/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/book/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/novel-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/book-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
],
|
||||
|
||||
// 最新章节-特殊页面处理
|
||||
'latest' => [
|
||||
'/xiaoshuo/:name-:intNovelId/chapter/latest',
|
||||
'/novel/:name-:intNovelId/chapter/latest',
|
||||
'/book/:name-:intNovelId/chapter/latest',
|
||||
'/xiaoshuo-:name-:intNovelId/chapter/latest',
|
||||
'/novel-:name-:intNovelId/chapter/latest',
|
||||
'/book-:name-:intNovelId/chapter/latest',
|
||||
],
|
||||
|
||||
// 目录相关路径
|
||||
'catalog' => [
|
||||
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
|
||||
'/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]',
|
||||
'/book/:name-:intNovelId/table/:strOrder/[:intPage]',
|
||||
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
|
||||
'/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]',
|
||||
'/book/:name-:intNovelId/table/:strOrder/[:intPage]',
|
||||
],
|
||||
|
||||
// 伪小说详情相关路径
|
||||
'kan-novel' => [
|
||||
'/kan-xiaoshuo/:name-:intNovelId-:intForgeId',
|
||||
'/show-novel/:name-:intNovelId-:intForgeId',
|
||||
'/seo-book/:name-:intNovelId-:intForgeId',
|
||||
'/show-xiaoshuo-:name-:intNovelId-:intForgeId',
|
||||
'/see-novel-:name-:intNovelId-:intForgeId',
|
||||
'/good-book-:name-:intNovelId-:intForgeId',
|
||||
],
|
||||
|
||||
// 小说详情相关路径
|
||||
'app_type' => [
|
||||
'novel' => [
|
||||
'/xiaoshuo/:name-:intNovelId',
|
||||
'/novel/:name-:intNovelId',
|
||||
'/book/:name-:intNovelId',
|
||||
'/xiaoshuo-:name-:intNovelId',
|
||||
'/novel-:name-:intNovelId',
|
||||
'/book-:name-:intNovelId',
|
||||
|
||||
// 章节相关路径
|
||||
'chapter' => [
|
||||
'/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/novel/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/book/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/novel-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
'/book-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
|
||||
],
|
||||
|
||||
// 最新章节-特殊页面处理
|
||||
'latest' => [
|
||||
'/xiaoshuo/:name-:intNovelId/chapter/latest',
|
||||
'/novel/:name-:intNovelId/chapter/latest',
|
||||
'/book/:name-:intNovelId/chapter/latest',
|
||||
'/xiaoshuo-:name-:intNovelId/chapter/latest',
|
||||
'/novel-:name-:intNovelId/chapter/latest',
|
||||
'/book-:name-:intNovelId/chapter/latest',
|
||||
],
|
||||
|
||||
// 目录相关路径
|
||||
'catalog' => [
|
||||
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
|
||||
'/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]',
|
||||
'/book/:name-:intNovelId/table/:strOrder/[:intPage]',
|
||||
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
|
||||
'/novel/:name-:intNovelId/catalog/:strOrder/[:intPage]',
|
||||
'/book/:name-:intNovelId/table/:strOrder/[:intPage]',
|
||||
],
|
||||
|
||||
// 伪小说详情相关路径
|
||||
'kan-novel' => [
|
||||
'/kan-xiaoshuo/:name-:intNovelId-:intForgeId',
|
||||
'/show-novel/:name-:intNovelId-:intForgeId',
|
||||
'/seo-book/:name-:intNovelId-:intForgeId',
|
||||
'/show-xiaoshuo-:name-:intNovelId-:intForgeId',
|
||||
'/see-novel-:name-:intNovelId-:intForgeId',
|
||||
'/good-book-:name-:intNovelId-:intForgeId',
|
||||
],
|
||||
|
||||
// 小说详情相关路径
|
||||
'novel' => [
|
||||
'/xiaoshuo/:name-:intNovelId',
|
||||
'/novel/:name-:intNovelId',
|
||||
'/book/:name-:intNovelId',
|
||||
'/xiaoshuo-:name-:intNovelId',
|
||||
'/novel-:name-:intNovelId',
|
||||
'/book-:name-:intNovelId',
|
||||
],
|
||||
|
||||
// 书库
|
||||
'library' => [
|
||||
/**
|
||||
* /shuku/nansheng-xiaoshuo/all/all/all/page1
|
||||
* 完整路由
|
||||
* 使用: {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/books/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/library/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/fenlei/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/class/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/category/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
|
||||
/**
|
||||
* default 模板
|
||||
* strGender 不需要
|
||||
* 使用 :gender 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/books/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/library/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/fenlei/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/class/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/category/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
|
||||
/**
|
||||
* kuangyu 模板
|
||||
* strOrder 不需要
|
||||
* 使用 order 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/books/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/library/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/fenlei/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/class/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/category/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
|
||||
],
|
||||
// 书库首页
|
||||
'library-index' => [
|
||||
'/shuku/index',
|
||||
'/books/index',
|
||||
'/library/index',
|
||||
'/fenlei/index',
|
||||
'/class/index',
|
||||
'/category/index',
|
||||
],
|
||||
// 排行榜列表url
|
||||
'rank-info' => [
|
||||
'/paihang/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/rank/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/top/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/ranks/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/phb/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/paihangbang/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
|
||||
'/paihang/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/rank/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/top/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/ranks/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/phb/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/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'],
|
||||
//女生
|
||||
'girls' => ['/nvsheng-xiaoshuo', '/girls-novel', '/nvsheng-shu', '/woman-read', '/nvsheng-book', '/female-novels'],
|
||||
//搜索
|
||||
'search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
|
||||
// 用户中心
|
||||
'user' => ['/user', '/my-account', '/profile', '/yonghu', '/wode-zhongxin', '/personal-center'],
|
||||
//书架
|
||||
'bookshelf' => ['/bookshelf', '/book-shelf', '/reading-shelf', '/shujia', '/yuedu-shujia', '/book-collection'],
|
||||
//历史记录
|
||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
// 首页 - 如果info_id 》 0
|
||||
'nindex' => ['/nindex'],
|
||||
|
||||
],
|
||||
|
||||
// 书库
|
||||
'library' => [
|
||||
/**
|
||||
* /shuku/nansheng-xiaoshuo/all/all/all/page1
|
||||
* '/:strGender?/:strCategory?/:strStatus?/:strOrder?/:intPage?';
|
||||
* 完整路由
|
||||
* 使用: {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/books/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/library/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/fenlei/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/class/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/category/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'video' => [
|
||||
// 视频站点url -- start
|
||||
|
||||
/**
|
||||
* default 模板
|
||||
* strGender 不需要
|
||||
* 使用 :gender 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/books/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/library/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/fenlei/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/class/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/category/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
* 视频分类 分页
|
||||
* /目前使用的3种模板:
|
||||
* /vodtype-dian-ying/dong-zuo-pian-1992-zhong-guo-da-lu-news/guo-yu-page1
|
||||
* /vodclass-dong-zuo-pian/dian-ying-1992-zhong-guo-da-lu-news/guo-yu-page1
|
||||
* /vodcategory-dian-ying-1992-dong-zuo-pian/zhong-guo-da-lu-news/guo-yu-page1
|
||||
*
|
||||
* /vodshow/电影/动作片/中国大陆/国语/1992/最新/第一页
|
||||
*/
|
||||
'video_category' => [
|
||||
|
||||
// 现在使用的9套
|
||||
'/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/vodclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/vodcategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
'/videotype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/videoclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/videocategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
'/shipinfenlei-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/shipinleixing-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
|
||||
'/shipinliebiao-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
|
||||
|
||||
],
|
||||
|
||||
// 视频分类 首页
|
||||
'video_category_index' => [
|
||||
'/vodtype/:strParentCategory',
|
||||
'/vodclass/:strParentCategory',
|
||||
'/vodcategory/:strParentCategory',
|
||||
|
||||
'/video-type/:strParentCategory',
|
||||
'/video-class/:strParentCategory',
|
||||
'/video-category/:strParentCategory',
|
||||
|
||||
'/shipinfenlei/:strParentCategory',
|
||||
'/shipinleixing/:strParentCategory',
|
||||
'/shipinliebiao/:strParentCategory',
|
||||
|
||||
],
|
||||
|
||||
/**
|
||||
* default 模板
|
||||
* strGender strOrder 不需要
|
||||
* 使用 :gender 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
* 视频详情
|
||||
* /voddetail/strVideoPinyin-1
|
||||
*/
|
||||
// '/shuku/:strCategory/:strStatus/page:intPage',
|
||||
// '/books/:strCategory/:strStatus/page:intPage',
|
||||
// '/library/:strCategory/:strStatus/page:intPage',
|
||||
// '/fenlei/:strCategory/:strStatus/page:intPage',
|
||||
// '/class/:strCategory/:strStatus/page:intPage',
|
||||
// '/category/:strCategory/:strStatus/page:intPage',
|
||||
'video_info' => [
|
||||
'/voddetail/:strPinyin-:intVId',
|
||||
'/vodinfo/:strPinyin-:intVId',
|
||||
'/vod/:strPinyin-:intVId',
|
||||
|
||||
/**
|
||||
* default 模板
|
||||
* strGender 不需要
|
||||
* 使用 :gender 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
// '/shuku/:strCategory/:strOrder/page:intPage',
|
||||
// '/books/:strCategory/:strOrder/page:intPage',
|
||||
// '/library/:strCategory/:strOrder/page:intPage',
|
||||
// '/fenlei/:strCategory/:strOrder/page:intPage',
|
||||
// '/class/:strCategory/:strOrder/page:intPage',
|
||||
// '/category/:strCategory/:strOrder/page:intPage',
|
||||
'/video-info/:strPinyin-:intVId',
|
||||
'/video-detail/:strPinyin-:intVId',
|
||||
'/video/:strPinyin-:intVId',
|
||||
|
||||
'/shipin/:strPinyin-:intVId',
|
||||
'/shipin-xiangqing/:strPinyin-:intVId',
|
||||
'/shipin-neiron/:strPinyin-:intVId',
|
||||
|
||||
/**
|
||||
* default 模板 /shuku/xuanhuan-xiuzhen/page1
|
||||
* strGender strStatus strOrder 不需要
|
||||
* 使用 :gender 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
// '/shuku/:strCategory/page:intPage',
|
||||
// '/books/:strCategory/page:intPage',
|
||||
// '/library/:strCategory/page:intPage',
|
||||
// '/fenlei/:strCategory/page:intPage',
|
||||
// '/class/:strCategory/page:intPage',
|
||||
// '/category/:strCategory/page:intPage',
|
||||
],
|
||||
|
||||
/**
|
||||
* kuangyu 模板
|
||||
* strOrder 不需要
|
||||
* 使用 order 传空/或者不传,控制器会默认值是 all
|
||||
* {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" page="1"/}
|
||||
*/
|
||||
'/shuku/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/books/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/library/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/fenlei/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/class/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
'/category/:strGender/:strCategory/:strStatus/page:intPage',
|
||||
// 视频播放 /vodplay/strPinyin-10-wuxian-1
|
||||
'video_play' => [
|
||||
'/vodplay/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/vodbf/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/vodseed/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
// '/shuku/:strGender/page:intPage',
|
||||
// '/books/:strGender/page:intPage',
|
||||
// '/library/:strGender/page:intPage',
|
||||
// '/fenlei/:strGender/page:intPage',
|
||||
// '/class/:strGender/page:intPage',
|
||||
// '/category/:strGender/page:intPage',
|
||||
'/video-play/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/video-bofang/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/video-show/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
'/shipin-play/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/shipin-bofang/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
'/shipin-kan/:strPinyin-:intVId-:strPlayType-:intPlayIndex',
|
||||
|
||||
],
|
||||
|
||||
//排行榜
|
||||
'video_rank_index' => ['/paihang/index', '/rank/index', '/paihang-quan', '/top/index', '/paihang-bang', '/ranks/index', '/sort/index', '/order/index', '/phb/index'],
|
||||
|
||||
//排行榜
|
||||
'video_rank_list' => [
|
||||
'/paihang/:strParentCategory/:strCategory/:strSortType',
|
||||
'/rank:strCategory/:strParentCategory-:strSortType',
|
||||
'/:strParentCategory/:strCategory/:strSortType-paihang',
|
||||
|
||||
'/:strCategory/:strParentCategory-:strSortType-top',
|
||||
'/:strParentCategory-:strSortType/paihangbang-:strCategory',
|
||||
'/:strParentCategory-:strSortType/:strCategory-ranks',
|
||||
|
||||
'/sort:strCategory/:strParentCategory-:strSortType',
|
||||
'/:strParentCategory/:strCategory/:strSortType-order',
|
||||
'/:strParentCategory-:strSortType/:strCategory-phb',
|
||||
|
||||
],
|
||||
|
||||
//搜索
|
||||
'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
|
||||
|
||||
// 历史记录
|
||||
'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'],
|
||||
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
// 首页 - 如果info_id 》 0
|
||||
'vindex' => ['/vindex'],
|
||||
|
||||
// 视频站点url -- end
|
||||
],
|
||||
// 书库首页
|
||||
'library-index' => [
|
||||
'/shuku/index',
|
||||
'/books/index',
|
||||
'/library/index',
|
||||
'/fenlei/index',
|
||||
'/class/index',
|
||||
'/category/index',
|
||||
],
|
||||
// 排行榜列表url
|
||||
'rank-info' => [
|
||||
/**
|
||||
* /paihang/nansheng-xiaoshuo/all/all/all/page1
|
||||
* 使用: {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" order="all" page="1"/}
|
||||
*/
|
||||
'/paihang/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/rank/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/top/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/ranks/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/phb/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/paihangbang/:strGender/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
|
||||
'/paihang/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/rank/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/top/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/ranks/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/phb/:strCategory/:strStatus/:strOrder/page:intPage',
|
||||
'/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'],
|
||||
//女生
|
||||
'girls' => ['/nvsheng-xiaoshuo', '/girls-novel', '/nvsheng-shu', '/woman-read', '/nvsheng-book', '/female-novels'],
|
||||
//搜索
|
||||
'search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
|
||||
// 用户中心
|
||||
'user' => ['/user', '/my-account', '/profile', '/yonghu', '/wode-zhongxin', '/personal-center'],
|
||||
//书架
|
||||
'bookshelf' => ['/bookshelf', '/book-shelf', '/reading-shelf', '/shujia', '/yuedu-shujia', '/book-collection'],
|
||||
//历史记录
|
||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
// 首页 - 如果info_id 》 0
|
||||
'nindex' => ['/nindex'],
|
||||
|
||||
],
|
||||
|
||||
// 通用路径别名
|
||||
'paths' => [],
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
* 遍历路由配置,动态注册 H5 和 PC 路由
|
||||
*/
|
||||
foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
|
||||
$prefixes = is_array($prefixes) ? $prefixes : [$prefixes];
|
||||
$boolIsMobile = $platform === 'h5';
|
||||
foreach ($prefixes as $strPath) {
|
||||
foreach ($arrRoutes['paths'] as $key => $arrUrl) {
|
||||
|
||||
$arrPathUrl = $arrRoutes['app_type']['novel'];
|
||||
if(config('app.default_app_type') == 'video'){
|
||||
$arrPathUrl = $arrRoutes['app_type']['video'];
|
||||
}
|
||||
|
||||
foreach ($arrPathUrl as $key => $arrUrl) {
|
||||
|
||||
foreach ($arrUrl as $strUrl) {
|
||||
$strRoute = $strPath . $strUrl;
|
||||
switch ($key) {
|
||||
@@ -688,7 +623,6 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
return view($strView);
|
||||
})->append(['strChannel' => 'women']);
|
||||
|
||||
//Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'girls']);
|
||||
break;
|
||||
|
||||
case 'search':
|
||||
@@ -762,103 +696,3 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 遍历路由配置,动态注册 H5 和 PC 路由
|
||||
*/
|
||||
// foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
// $prefixes = is_array($prefixes) ? $prefixes : [$prefixes];
|
||||
// $boolIsMobile = $platform === 'h5';
|
||||
// foreach ($prefixes as $strPath) {
|
||||
// foreach ($arrRoutes['paths'] as $key => $arrUrl) {
|
||||
// foreach ($arrUrl as $strUrl) {
|
||||
// $strRoute = $strPath . $strUrl;
|
||||
// switch ($key) {
|
||||
// case 'latest':
|
||||
// //最新章节
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelLatestChapter'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
// break;
|
||||
// case 'chapter':
|
||||
// //章节
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelChapter'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'intChapterSort' => '\d+', 'intChapterPage' => '\d+']);
|
||||
// break;
|
||||
// case 'kan-novel':
|
||||
// //伪造小说详情
|
||||
// Route::get($strRoute, [Novel::class, 'getKanNovelInfo'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
// break;
|
||||
// case 'novel':
|
||||
// //小说详情
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelInfo'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
// break;
|
||||
// case 'catalog':
|
||||
// //目录
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelCatalog'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
|
||||
// break;
|
||||
// case 'library':
|
||||
// //书库/分类 /shuku/all/xuanhuan-xiuzhen/all/all/page1
|
||||
// Route::get($strRoute, [Novel::class, 'getLibrary'])
|
||||
// ->append(['boolIsMobile' => $boolIsMobile])
|
||||
// ->pattern([
|
||||
// //'strGender' => 'all|nansheng-xiaoshuo|boys-novel|nansheng-shu|man-read|nansheng-book|male-novels|nvsheng-xiaoshuo|girls-novel|nvsheng-shu|woman-read|nvsheng-book|female-novels',
|
||||
// 'strGender' => '[a-z\-]+',
|
||||
// 'strCategory' => '[a-z\-]+',
|
||||
// 'strStatus' => 'all|lianzai|wanjie',
|
||||
// // 'strOrder' => '[a-z\-]+',
|
||||
// 'intPage' => '\d+'
|
||||
// ]);
|
||||
// break;
|
||||
// case 'library-index':
|
||||
// //书库/分类首页
|
||||
// Route::get($strRoute, [Novel::class, 'getLibrary'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'rank':
|
||||
// //排行榜
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelRank'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'boys':
|
||||
// //男生
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'boys']);
|
||||
// break;
|
||||
// case 'girls':
|
||||
// //女生
|
||||
// Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'girls']);
|
||||
// break;
|
||||
// case 'search':
|
||||
// //搜素
|
||||
// Route::get($strRoute, [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'user':
|
||||
// //用户中心
|
||||
// Route::get($strRoute, [User::class, 'Index'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'bookshelf':
|
||||
// //书架
|
||||
// Route::get($strRoute, [User::class, 'getBookShelf'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'history':
|
||||
// //历史记录
|
||||
// Route::get($strRoute, [User::class, 'getHistory'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// break;
|
||||
// case 'index':
|
||||
// // 首页
|
||||
// if ($platform == 'h5') {
|
||||
// Route::get($strRoute, [Index::class, 'index'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// } else {
|
||||
// Route::get($strRoute, [Index::class, 'getPcIndex'])->append(['boolIsMobile' => $boolIsMobile]);
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user