You've already forked lubo_comment_query
错误提示及保留input
This commit is contained in:
@ -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" => "没有开始时间,请先保存对应时间"
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user