You've already forked lubo_comment_query
							
							创建时,填写bvid
This commit is contained in:
		| @@ -25,6 +25,7 @@ class ProgramVideoConstructController extends BaseController | ||||
| 
 | ||||
|     public function create(Request $request, Programs $program) { | ||||
|         $request->validate([ | ||||
|             "video_bvid" => ["required"], | ||||
|             "start_part" => ["required", "int"], | ||||
|             "stop_part" => ["required", "int"], | ||||
|             "start_time" => ["required", "date_format:H:i:s"], | ||||
| @@ -34,6 +35,7 @@ class ProgramVideoConstructController extends BaseController | ||||
|         $program_video = new ProgramVideos(); | ||||
|         $createPayload = $request->only(["start_part", "start_time", "stop_part", "stop_time"]); | ||||
|         $program_video->fill($createPayload); | ||||
|         $program_video->video_bvid = $request->post("video_bvid"); | ||||
|         if ($request->hasFile("start_image")) { | ||||
|             $file = $request->file("start_image"); | ||||
|             $path = $file->store("lubo_file"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user