You've already forked lubo_comment_query
新建节目时,自动修复时间,取消手动修复,取消主动修改分P
This commit is contained in:
@ -80,10 +80,15 @@ class ProgramVideoUtil
|
||||
$base_time,
|
||||
$start_time->secondsSinceMidnight()
|
||||
);
|
||||
if ($cur_part->duration->diffInMinutes($start_time) < 20) {
|
||||
$program_video->stop_part += 1;
|
||||
if ($program_video->stop_part > $video_parts->pluck("part_num")->max()) {
|
||||
$program_video->stop_part = $video_parts->pluck("part_num")->max();
|
||||
if (!$program_video->stop_part) {
|
||||
// 没有再去修复
|
||||
if ($cur_part->duration->diffInMinutes($start_time) < 20) {
|
||||
$program_video->stop_part = $cur_part->part_num + 1;
|
||||
if ($program_video->stop_part > $video_parts->pluck("part_num")->max()) {
|
||||
$program_video->stop_part = $video_parts->pluck("part_num")->max();
|
||||
}
|
||||
} else {
|
||||
$program_video->stop_part = $cur_part->part_num;
|
||||
}
|
||||
}
|
||||
$program_video->save();
|
||||
|
Reference in New Issue
Block a user