From aaa864cf54861d88cd5179ac7743fc0748163c1d Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Fri, 21 Nov 2025 15:56:02 +0800 Subject: [PATCH] update --- app/Models/Company.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/Company.php b/app/Models/Company.php index 080c4bb..a9feda8 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -6,6 +6,16 @@ class Company extends SoftDeletesModel { protected $casts = ['project_users' => 'json', 'partners' => 'json']; + protected $appends = ['is_yh_invested_text']; + + public function getIsYhInvestedTextAttribute() + { + $array = [ + 0 => '否', + 1 => '是', + ]; + return $array[$this->is_yh_invested] ?? ''; + } public function users() {