错误提示及保留input

This commit is contained in:
2022-08-20 11:49:13 +08:00
parent c452e6a486
commit d897e9a33d
3 changed files with 6 additions and 9 deletions

View File

@ -103,7 +103,7 @@ class ProgramVideoConstructController extends BaseController
public function to_fix_created_at(Request $request, ProgramVideos $program_video) {
if ($program_video->created_at === null) {
return back()->withErrors([
return back()->withInput()->withErrors([
"id" => "没有开始时间,请先保存对应时间"
]);
}
@ -118,7 +118,7 @@ class ProgramVideoConstructController extends BaseController
"each_time" => ["required", "date_format:H:i:s"]
]);
if ($program_video->created_at === null) {
return back()->withErrors([
return back()->withInput()->withErrors([
"id" => "没有开始时间,请先保存对应时间"
]);
}