debug
This commit is contained in:
@@ -92,55 +92,74 @@ $arrRoutes = [
|
||||
|
||||
/**
|
||||
* 视频分类 分页
|
||||
*
|
||||
* /vodtype-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
* /dong-zuo-pian/vodclass-dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
* /dong-zuo-pian-vodlist/dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
* /vodcategory-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
|
||||
*
|
||||
* /video-type/dianying/dong-zuo-pian/zhongguodalu/guoyu/1992/news/page1
|
||||
* /video-class-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
|
||||
* /video-list-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news/page1
|
||||
* /video-category-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
|
||||
*
|
||||
* /shipinfenlei-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
* /shipinleixing-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
* /shipinliebiao-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
|
||||
*
|
||||
|
||||
* /目前使用的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-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/:strCategory/vodclass-:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/vodcategory-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/:strCategory-vodlist/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
|
||||
// '/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/:strClass/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage',
|
||||
'/video-class-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/video-category-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/video-list-:strClass/: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-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/shipinleixing-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
|
||||
'/shipinliebiao-:strCategory/:strClass-: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/:strClass',
|
||||
'/vodclass/:strClass',
|
||||
'/vodcategory/:strClass',
|
||||
'/vodlist/:strClass',
|
||||
'/vodtype/:strParentCategory',
|
||||
'/vodclass/:strParentCategory',
|
||||
'/vodcategory/:strParentCategory',
|
||||
// '/vodlist/:strParentCategory',
|
||||
|
||||
'/video-type/:strClass',
|
||||
'/video-class/:strClass',
|
||||
'/video-category/:strClass',
|
||||
'/video-list/:strClass',
|
||||
'/video-type/:strParentCategory',
|
||||
'/video-class/:strParentCategory',
|
||||
'/video-category/:strParentCategory',
|
||||
// '/video-list/:strParentCategory',
|
||||
|
||||
'/shipinfenlei/:strClass',
|
||||
'/shipinleixing/:strClass',
|
||||
'/shipinliebiao/:strClass',
|
||||
'/shipinfenlei/:strParentCategory',
|
||||
'/shipinleixing/:strParentCategory',
|
||||
'/shipinliebiao/:strParentCategory',
|
||||
|
||||
],
|
||||
|
||||
@@ -184,23 +203,26 @@ $arrRoutes = [
|
||||
|
||||
//排行榜
|
||||
'video_rank_list' => [
|
||||
'/paihang/:strClass/:strCategory/:strSortType',
|
||||
'/rank:strCategory/:strClass-:strSortType',
|
||||
'/:strClass/:strCategory/:strSortType-paihang',
|
||||
'/paihang/:strParentCategory/:strCategory/:strSortType',
|
||||
'/rank:strCategory/:strParentCategory-:strSortType',
|
||||
'/:strParentCategory/:strCategory/:strSortType-paihang',
|
||||
|
||||
'/:strCategory/:strClass-:strSortType-top',
|
||||
'/:strClass-:strSortType/paihangbang-:strCategory',
|
||||
'/:strClass-:strSortType/:strCategory-ranks',
|
||||
'/:strCategory/:strParentCategory-:strSortType-top',
|
||||
'/:strParentCategory-:strSortType/paihangbang-:strCategory',
|
||||
'/:strParentCategory-:strSortType/:strCategory-ranks',
|
||||
|
||||
'/sort:strCategory/:strClass-:strSortType',
|
||||
'/:strClass/:strCategory/:strSortType-order',
|
||||
'/:strClass-:strSortType/:strCategory-phb',
|
||||
'/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
|
||||
|
||||
@@ -420,7 +442,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern([
|
||||
'strClass' => '[a-z\-]*', // 允许空值
|
||||
'strParentCategory' => '[a-z\-]*', // 允许空值
|
||||
]);
|
||||
break;
|
||||
|
||||
@@ -448,7 +470,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern([
|
||||
'strClass' => '[a-z\-]*', // 允许空值
|
||||
'strParentCategory' => '[a-z\-]*', // 允许空值
|
||||
'strCategory' => '[a-z\-]*', // 允许空值
|
||||
'strSortType' => '[a-z\-]*', // 允许空值
|
||||
'intPage' => '\d*', // 允许空值
|
||||
@@ -465,12 +487,12 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern([
|
||||
'strClass' => '[a-z\-]*', // 允许空值
|
||||
'strParentCategory' => '[a-z\-]*', // 允许空值
|
||||
'strCategory' => '[a-z\-]*', // 允许空值
|
||||
'strArea' => '[a-z\-]*', // 允许空值
|
||||
'strLang' => '[a-z\-]*', // 允许空值
|
||||
'strYear' => '[a-zA-Z0-9\-]*', // 允许空值
|
||||
'strSort' => '[a-z\-]*', // 允许空值
|
||||
'strYear' => '([0-9]+|all)?', // 允许空值
|
||||
'strOrder' => '[a-zA-Z]*', // 允许空值
|
||||
'intPage' => '\d*', // 允许空值
|
||||
]);
|
||||
break;
|
||||
@@ -510,6 +532,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
})->ext('html');
|
||||
break;
|
||||
|
||||
case 'video_history':
|
||||
//历史记录
|
||||
$strView = 'pc/user/getHistory.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'user/getHistory.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
});
|
||||
break;
|
||||
|
||||
|
||||
// 视频站点url -- end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user