fix bug
This commit is contained in:
parent
31c21e3a04
commit
cec896abbf
@ -110,7 +110,7 @@ class ProgramConstructController extends BaseController
|
||||
$program->name = trim($match["content"]);
|
||||
$video_pivot = new ProgramVideos();
|
||||
$video_pivot->video_bvid = $bvid;
|
||||
$video_pivot->start_part = $match["part"] ?? 1;
|
||||
$video_pivot->start_part = empty($match["part"]) ? 1 : $match["part"];
|
||||
$video_pivot->start_time = $time;
|
||||
$program->save();
|
||||
$program->video_pivots()->save($video_pivot);
|
||||
|
Loading…
x
Reference in New Issue
Block a user