From 64d3a7b8573a44f1954aaefb16c162d97fe6b9c6 Mon Sep 17 00:00:00 2001 From: weiz Date: Sat, 9 Dec 2023 14:45:33 +0800 Subject: [PATCH] update --- app/api/controller/PlantController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/controller/PlantController.php b/app/api/controller/PlantController.php index 08deb26f..a5444a60 100644 --- a/app/api/controller/PlantController.php +++ b/app/api/controller/PlantController.php @@ -35,6 +35,7 @@ return $this->fail('种植信息错误'); } $data['pic'] = json_decode($data['pic'],true); + $data['plant_date'] = date('Y-m-d H:i:s',$data['plant_date']); return $this->success('请求成功',$data->toArray()); } -- 2.40.1