diff --git a/app/adminapi/controller/SuYuanController.php b/app/adminapi/controller/SuYuanController.php index 6e7f6009..b8445a44 100644 --- a/app/adminapi/controller/SuYuanController.php +++ b/app/adminapi/controller/SuYuanController.php @@ -124,11 +124,7 @@ class SuYuanController extends BaseAdminController } $data = Db::name('environmental_data')->where('production_base_id',$params['id'])->where('flag',$params['flag'])->limit(6)->select(); $content = Db::name('production_base')->where('id',$params['id'])->field('content')->findOrEmpty(); - $result = []; - foreach ($data as $v) { - - } - dump($data);die; + return $this->success('请求成功',['data'=>$data,'content'=>$content['content']]); } //上传图片