修改活动提交时间
This commit is contained in:
@@ -120,6 +120,17 @@ class IndexController extends AdminController
|
||||
|
||||
return back()->withInput()->with(compact('error'));
|
||||
}
|
||||
|
||||
if ($request->type == Activity::TYPE_SCOPE && (empty($request->start_at) || empty($request->end_at))) {
|
||||
$error = new MessageBag([
|
||||
'title' => '错误',
|
||||
'message' => '必须添加延期天数',
|
||||
]);
|
||||
|
||||
return back()->withInput()->with(compact('error'));
|
||||
}
|
||||
$form->start_at = $form->start_at . ' 00:00:01';
|
||||
$form->end_at = $form->end_at . ' 23:59:59';
|
||||
});
|
||||
|
||||
return $form;
|
||||
|
||||
Reference in New Issue
Block a user