dev #3

Merged
weiz merged 5 commits from dev into master 2023-10-16 10:41:43 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 2b7229069a - Show all commits

View File

@ -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();