自动修复逻辑,对应按钮

This commit is contained in:
2022-08-25 10:07:46 +08:00
parent 9fb8a83fa5
commit 712244e0a3
6 changed files with 68 additions and 7 deletions

View File

@ -51,7 +51,7 @@
<div class="block my-2 text-center">
<input class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" type="submit">
</div>
@if($program_video->video_bvid)
@if($program_video->video)
<div class="block my-2">
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" target="_blank"
href="https://www.bilibili.com/video/{{$program_video->video_bvid}}?p={{$program_video->start_part}}&t={{$program_video->start_sec}}"
@ -61,9 +61,16 @@
href="https://www.bilibili.com/video/{{$program_video->video_bvid}}?p={{$program_video->stop_part}}&t={{$program_video->stop_sec}}"
title="P{{$program_video->stop_part}}#{{$program_video->stop_time}}"
>打开至结束位置</a>
@if($program_video->created_at)
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white"
href="{{ url(route("program.construct.video.batch_fix_created_at", ["program_video" => $program_video->id])) }}"
>去批量修复开打时间</a>
href="{{ url(route("program.construct.video.manual_fix_created_at.view", ["program_video" => $program_video->id])) }}"
>手动修复开打时间</a>
@endif
@if($program_video->video->parts()->count() > 0)
<a class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white"
href="{{ url(route("program.construct.video.auto_fix_created_at", ["bvid" => $program_video->video_bvid])) }}"
>自动修复</a>
@endif
</div>
@endif
</form>