Compare commits
2 Commits
84b567688d
...
b30104051e
Author | SHA1 | Date |
---|---|---|
weiz | b30104051e | |
unknown | 504587ebaa |
|
@ -114,6 +114,9 @@ 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()){
|
||||
return $this->success('请求成功',[]);
|
||||
}
|
||||
$content = Db::name('production_base')->where('id',$data['production_base_id'])->field('content')->findOrEmpty();
|
||||
$data['content'] = $content['content'];
|
||||
return $this->success('请求成功',$data);
|
||||
|
|
Loading…
Reference in New Issue