debug
This commit is contained in:
@@ -499,26 +499,26 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
|
||||
case 'video_search':
|
||||
//搜素
|
||||
// $strView = 'pc/getSearchVideo.html';
|
||||
// if ($platform == 'h5') {
|
||||
// $strView = 'video/getSearchVideo.html';
|
||||
// }
|
||||
// Route::get($strRoute, function () use ($strView) {
|
||||
// return view($strView);
|
||||
// })->ext('html');
|
||||
// break;
|
||||
$strView = 'pc/getSearchVideo.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'video/getSearchVideo.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})->ext('html');
|
||||
break;
|
||||
|
||||
// 首页
|
||||
if ($platform == 'h5') {
|
||||
Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
return view($SiteContext->getHomeView('h5'));
|
||||
});
|
||||
} else {
|
||||
Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
return view($SiteContext->getHomeView('pc'));
|
||||
});
|
||||
}
|
||||
break;
|
||||
// if ($platform == 'h5') {
|
||||
// Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
// return view($SiteContext->getHomeView('h5'));
|
||||
// });
|
||||
// } else {
|
||||
// Route::get($strRoute, function (\think\Request $Request, SiteContext $SiteContext) {
|
||||
// return view($SiteContext->getHomeView('pc'));
|
||||
// });
|
||||
// }
|
||||
// break;
|
||||
|
||||
case 'video_history':
|
||||
//历史记录
|
||||
|
||||
@@ -16,6 +16,7 @@ class CrawlerConfig
|
||||
'福利',
|
||||
'伦理',
|
||||
'伦理片',
|
||||
'倫理片',
|
||||
'体育赛事',
|
||||
'足球',
|
||||
];
|
||||
|
||||
@@ -464,12 +464,25 @@ function initDPlayer(strPlayUrl) {
|
||||
});
|
||||
// 监听当前播放时间
|
||||
videoPlayer.on('timeupdate', function () {
|
||||
if (videoPlayer.video.currentTime < intJumpTimeFirst) { // 当前时间小于 20 秒
|
||||
videoPlayer.seek(intJumpTimeFirst); // 跳过到 20 秒
|
||||
}
|
||||
if (videoPlayer.video.currentTime >= intJumpTimeTwoStart && videoPlayer.video.currentTime < intJumpTimeTwoEnd) { // 当前时间小于 20 秒
|
||||
videoPlayer.seek(intJumpTimeTwoEnd + 1); // 跳过到 20 秒
|
||||
if (strPlayType == 'default' || strPlayType == 'youzhi') {
|
||||
if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒
|
||||
videoPlayer.seek(495); // 跳过到 494 秒
|
||||
}
|
||||
// 30:15 30:32
|
||||
if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
|
||||
videoPlayer.seek(1833); // 跳过到 494 秒
|
||||
}
|
||||
// 01:00:32 - 01:00:50
|
||||
if (videoPlayer.video.currentTime >= 3631 && videoPlayer.video.currentTime < 3650) { //19秒
|
||||
videoPlayer.seek(3651); // 跳过到 494 秒
|
||||
}
|
||||
// 01:40:48 - 01:40:48
|
||||
if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
|
||||
videoPlayer.seek(6068); // 跳过到 494 秒
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user