From cbc0270ad88894b1dc7057031d63e2896fcab791 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Wed, 17 Sep 2025 18:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=AF=E5=8F=A3=E8=8B=B1=E6=96=87=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/SysPortLogic.php | 2 +- app/common/model/SysPort.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/logic/SysPortLogic.php b/app/common/logic/SysPortLogic.php index e12c260..4de5cdf 100644 --- a/app/common/logic/SysPortLogic.php +++ b/app/common/logic/SysPortLogic.php @@ -16,7 +16,7 @@ class SysPortLogic public function getList($where) { - return SysPort::where('status', 1)->where($where)->orderBy('sort','desc')->get(['id', 'port_code', 'port_name', 'country_id', 'description']); + return SysPort::where('status', 1)->where($where)->orderBy('sort','desc')->get(['id', 'port_code', 'port_name', 'port_name_en', 'country_id', 'description']); } } \ No newline at end of file diff --git a/app/common/model/SysPort.php b/app/common/model/SysPort.php index 2249b98..9afa1af 100644 --- a/app/common/model/SysPort.php +++ b/app/common/model/SysPort.php @@ -40,7 +40,7 @@ class SysPort extends Model /** * 允许自动填充模型字段 */ - protected $fillable = ['id', 'port_code', 'port_name', 'country_id', 'lat', 'lng', 'description', 'status', 'sort', 'created_at', 'updated_at']; + protected $fillable = ['id', 'port_code', 'port_name', 'port_name_en', 'country_id', 'lat', 'lng', 'description', 'status', 'sort', 'created_at', 'updated_at']; /** * 不允许自动填充模型字段