修复时间bug

This commit is contained in:
2020-08-20 09:32:23 +08:00
parent bc98f7611f
commit d533076717
2 changed files with 9 additions and 4 deletions

View File

@@ -133,8 +133,13 @@ class IndexController extends AdminController
return back()->withInput()->with(compact('error'));
}
$form->start_at = $form->start_at . ' 00:00:01';
$form->end_at = $form->end_at . ' 23:59:59';
if (request()->start) {
$form->start_at = $form->start_at . ' 00:00:01';
}
if (request()->end_at) {
$form->end_at = $form->end_at . ' 23:59:59';
}
});
return $form;

View File

@@ -9,11 +9,11 @@ use Schema;
class Log extends Model
{
protected $guarded = ['id'];
protected $guarded;
protected $table;
protected $casts = [
protected $casts = [
'in_source' => 'array',
'out_source' => 'array',
];