Merge pull request 'patch' (#19) from zhangwei into dev

Reviewed-on: #19
This commit is contained in:
weiz 2023-09-07 14:07:14 +08:00
commit 64c6dcf868

View File

@ -205,6 +205,9 @@ class VehicleController extends BaseApiController
} }
//获取参数 //获取参数
$params = $this->request->post(['type','license','pic']); $params = $this->request->post(['type','license','pic']);
if(!isset($params['type'])){
return $this->fail('缺少必要参数');
}
if($params['type'] == 1){ if($params['type'] == 1){
if(empty($params['license']) || empty($params['pic'])){ if(empty($params['license']) || empty($params['pic'])){
return $this->fail('缺少必要参数'); return $this->fail('缺少必要参数');
@ -376,6 +379,7 @@ class VehicleController extends BaseApiController
'self_num' => $selfCar, 'self_num' => $selfCar,
'apply_num' => $applyCar 'apply_num' => $applyCar
]; ];
dump($data);die;
//返回 //返回
return $this->success('请求成功',$data); return $this->success('请求成功',$data);
} }