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