From c1c9eb3d8046173cb99177ffcc48078946a6797e Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 23 Jan 2024 18:38:13 +0800 Subject: [PATCH] update --- app/common/model/project/ProjectLaborContract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/model/project/ProjectLaborContract.php b/app/common/model/project/ProjectLaborContract.php index d59b24316..bca9f9a1d 100644 --- a/app/common/model/project/ProjectLaborContract.php +++ b/app/common/model/project/ProjectLaborContract.php @@ -33,7 +33,7 @@ class ProjectLaborContract extends BaseModel public function getAnnexAttr($value) { - return json_decode($value,true); + return !empty($value) ? json_decode($value,true) : ''; } public function getSigningDateAttr($value): string