Compare commits
3 Commits
ea4a0b9247
...
36a8aea0fc
Author | SHA1 | Date |
---|---|---|
weiz | 36a8aea0fc | |
weiz | 616b38a6d7 | |
weiz | 22706b80fd |
|
@ -113,7 +113,10 @@
|
|||
if(empty($params['plant_id']) || empty($params['type'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->select()->toArray();
|
||||
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->select()->each(function($item){
|
||||
$item['detail'] = json_decode($item['detail'],true);
|
||||
return $item;
|
||||
})->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue