You've already forked lubo_comment_query
fix bug
This commit is contained in:
@ -110,7 +110,7 @@ class ProgramConstructController extends BaseController
|
|||||||
$program->name = trim($match["content"]);
|
$program->name = trim($match["content"]);
|
||||||
$video_pivot = new ProgramVideos();
|
$video_pivot = new ProgramVideos();
|
||||||
$video_pivot->video_bvid = $bvid;
|
$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;
|
$video_pivot->start_time = $time;
|
||||||
$program->save();
|
$program->save();
|
||||||
$program->video_pivots()->save($video_pivot);
|
$program->video_pivots()->save($video_pivot);
|
||||||
|
Reference in New Issue
Block a user