dev #3
|
@ -114,7 +114,7 @@ class SuYuanController extends BaseAdminController
|
||||||
return $this->fail('参数错误');
|
return $this->fail('参数错误');
|
||||||
}
|
}
|
||||||
$data = Db::name('environmental_data')->where('id',$params['id'])->where('flag',$params['flag'])->order('id desc')->findOrEmpty();
|
$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('请求成功',[]);
|
return $this->success('请求成功',[]);
|
||||||
}
|
}
|
||||||
$content = Db::name('production_base')->where('id',$data['production_base_id'])->field('content')->findOrEmpty();
|
$content = Db::name('production_base')->where('id',$data['production_base_id'])->field('content')->findOrEmpty();
|
||||||
|
|
Loading…
Reference in New Issue