From 2b7229069a4a988021a950bec621793f752b5332 Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Sat, 14 Oct 2023 17:54:24 +0800 Subject: [PATCH] fixed --- app/adminapi/controller/SuYuanController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adminapi/controller/SuYuanController.php b/app/adminapi/controller/SuYuanController.php index bc4bc6dd..330db8ed 100644 --- a/app/adminapi/controller/SuYuanController.php +++ b/app/adminapi/controller/SuYuanController.php @@ -114,7 +114,7 @@ class SuYuanController extends BaseAdminController return $this->fail('参数错误'); } $data = Db::name('environmental_data')->where('id',$params['id'])->where('flag',$params['flag'])->order('id desc')->findOrEmpty(); - if($data->isEmpty()){ + if(empty($data)){ return $this->success('请求成功',[]); } $content = Db::name('production_base')->where('id',$data['production_base_id'])->field('content')->findOrEmpty();