Compare commits

..

No commits in common. "19363319cff52504a0037577ac4a2a94411b574a" and "56ef497aac7f8c04da88f69d7d995e469db41ed4" have entirely different histories.

1 changed files with 0 additions and 7 deletions

View File

@ -41,9 +41,6 @@
return $this->fail('操作内容格式错误');
}
foreach($this->actionFields[$params['type']] as $v) {
if($v == 'remark'){
continue;
}
if(empty($detail[$v])){
return $this->fail($this->actionMessage[$params['type']].'缺少必要参数');
}
@ -106,8 +103,6 @@
$data = Db::query("SELECT * FROM zzsy_land_plant_action WHERE id IN (SELECT max( id ) FROM zzsy_land_plant_action WHERE plant_id = {$params['plant_id']} GROUP BY type)");
foreach($data as $k=>$v){
$data[$k]['detail'] = json_decode($v['detail'],true);
$data[$k]['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
$data[$k]['update_time'] = date('Y-m-d H:i:s',$v['update_time']);
}
return $this->success('请求成功',$data);
}
@ -121,8 +116,6 @@
}
$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);
$item['create_time'] = date('Y-m-d H:i:s',$item['create_time']);
$item['update_time'] = date('Y-m-d H:i:s',$item['update_time']);
return $item;
})->toArray();
return $this->success('请求成功',$data);