You've already forked lubo_comment_query
自动修复逻辑,对应按钮
This commit is contained in:
@ -107,7 +107,7 @@ class ProgramVideoConstructController extends BaseController
|
||||
"id" => "没有开始时间,请先保存对应时间"
|
||||
]);
|
||||
}
|
||||
return view("program.construct.video.time_fix", [
|
||||
return view("program.construct.video.manual_fix", [
|
||||
"program_video" => $program_video
|
||||
]);
|
||||
}
|
||||
@ -127,4 +127,16 @@ class ProgramVideoConstructController extends BaseController
|
||||
ProgramVideoUtil::fix_created_at_by_manual($program_video, $each_time_sec);
|
||||
return redirect(route("program.construct.list"));
|
||||
}
|
||||
|
||||
public function auto_fix_created_at(Request $request, string $bvid)
|
||||
{
|
||||
$result = ProgramVideoUtil::fix_created_at_by_part_info($bvid, true);
|
||||
if ($result) {
|
||||
return redirect(route("program.construct.list"));
|
||||
} else {
|
||||
return back()->withErrors([
|
||||
"video_bvid" => "自动修复失败"
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user