This commit is contained in:
make
2025-05-29 14:26:02 +08:00
parent 9c2d7e54c5
commit f47d5cc378
3 changed files with 37 additions and 23 deletions

View File

@@ -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':
//历史记录 //历史记录

View File

@@ -16,6 +16,7 @@ class CrawlerConfig
'福利', '福利',
'伦理', '伦理',
'伦理片', '伦理片',
'倫理片',
'体育赛事', '体育赛事',
'足球', '足球',
]; ];

View File

@@ -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 秒 // 3015 3032
if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
videoPlayer.seek(1833); // 跳过到 494 秒
}
// 010032 - 010050
if (videoPlayer.video.currentTime >= 3631 && videoPlayer.video.currentTime < 3650) { //19秒
videoPlayer.seek(3651); // 跳过到 494 秒
}
// 014048 - 014048
if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
videoPlayer.seek(6068); // 跳过到 494 秒
}
} }
}); });
} }