From 87866a015363e41afc720d28f57f0db2067bbab7 Mon Sep 17 00:00:00 2001 From: liutk <961510893@qq.com> Date: Wed, 5 Jun 2024 14:31:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Activity.php | 4 ++-- app/Models/ActivityGame.php | 2 +- lang/zh_CN/admin.php | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index c0d47b4..062799b 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -15,8 +15,8 @@ class Activity extends Model ]; protected $casts = [ - 'start_at' => 'datetime:Y-m-d H:i​:s', - 'end_at' => 'datetime:Y-m-d H:i​:s' + 'start_at' => 'datetime:Y-m-d H:i:s', + 'end_at' => 'datetime:Y-m-d H:i:s' ]; public function scopeShow($q){ diff --git a/app/Models/ActivityGame.php b/app/Models/ActivityGame.php index a3779c9..cf99258 100644 --- a/app/Models/ActivityGame.php +++ b/app/Models/ActivityGame.php @@ -11,7 +11,7 @@ class ActivityGame extends Model use HasFactory,Filterable; protected $casts = [ - 'game_at' => 'datetime' + 'game_at' => 'datetime:Y-m-d H:i:s' ]; protected $fillable = [ diff --git a/lang/zh_CN/admin.php b/lang/zh_CN/admin.php index 7d05220..b812840 100644 --- a/lang/zh_CN/admin.php +++ b/lang/zh_CN/admin.php @@ -150,6 +150,7 @@ return [ 'username_already_exists' => '用户名已存在', 'cannot_delete' => '不可删除超级管理员', 'lock' => '锁定', + 'edit_password' => '修改密码' ], 'admin_roles' => '角色',