From fe8bce4b4c5109780cbbfe848eb8735ca385311f Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 8 Sep 2025 17:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/SysDictItemService.php | 2 +- app/common/model/SysDictItemTranslation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/service/SysDictItemService.php b/app/admin/service/SysDictItemService.php index 532cb61..98430b9 100644 --- a/app/admin/service/SysDictItemService.php +++ b/app/admin/service/SysDictItemService.php @@ -75,7 +75,7 @@ class SysDictItemService return $config; } - public $translatFields = ['item_label']; + public $translatFields = ['item_label','remark']; public function afterServiceStore($res) { diff --git a/app/common/model/SysDictItemTranslation.php b/app/common/model/SysDictItemTranslation.php index e4446ff..8d33913 100644 --- a/app/common/model/SysDictItemTranslation.php +++ b/app/common/model/SysDictItemTranslation.php @@ -40,7 +40,7 @@ class SysDictItemTranslation extends Model /** * 允许自动填充模型字段 */ - protected $fillable = ['id', 'dict_id', 'locale', 'dict_name', 'description', 'created_at', 'updated_at']; + protected $fillable = ['id', 'dict_id', 'remark', 'locale', 'dict_name', 'description', 'created_at', 'updated_at']; /** * 不允许自动填充模型字段