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']; /** * 不允许自动填充模型字段