From ea4a0b92477e45aa2dc11d32d31fa10f1dd13914 Mon Sep 17 00:00:00 2001 From: weiz Date: Wed, 29 Nov 2023 17:27:35 +0800 Subject: [PATCH] update --- app/api/controller/ActionController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/controller/ActionController.php b/app/api/controller/ActionController.php index 8525b232..f5618a65 100644 --- a/app/api/controller/ActionController.php +++ b/app/api/controller/ActionController.php @@ -100,6 +100,9 @@ return $this->fail('缺少必要参数'); } $data = Db::query("SELECT * FROM zzsy_land_plant_action WHERE id IN (SELECT max( id ) FROM zzsy_land_plant_action WHERE plant_id = {$params['plant_id']} GROUP BY type)"); + foreach($data as $k=>$v){ + $data[$k]['detail'] = json_decode($v['detail'],true); + } return $this->success('请求成功',$data); }