update #32

Merged
weiz merged 1 commits from zhangwei into dev 2023-11-29 17:59:59 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 89fdc19046 - Show all commits

View File

@ -113,7 +113,7 @@
if(empty($params['plant_id']) || empty($params['type'])){
return $this->fail('缺少必要参数');
}
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->select()->each(function($item){
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->order('create_time desc')->select()->each(function($item){
$item['detail'] = json_decode($item['detail'],true);
return $item;
})->toArray();