From d48a17991da48a1618d2cf74040a1fcebf5a5745 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Wed, 24 Jan 2024 17:52:31 +0800 Subject: [PATCH] update --- app/common/model/safety/SafetyModify.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/common/model/safety/SafetyModify.php b/app/common/model/safety/SafetyModify.php index 4aba98f2c..b717606ad 100644 --- a/app/common/model/safety/SafetyModify.php +++ b/app/common/model/safety/SafetyModify.php @@ -34,4 +34,8 @@ class SafetyModify extends BaseModel { return !empty($value) ? date('Y-m-d',$value) : ''; } + + public function getFileAttr($value){ + return !empty($value) ? json_decode($value,true) : ''; + } } \ No newline at end of file