Merge pull request 'patch' (#19) from zhangwei into dev
Reviewed-on: #19
This commit is contained in:
commit
64c6dcf868
@ -205,6 +205,9 @@ class VehicleController extends BaseApiController
|
||||
}
|
||||
//获取参数
|
||||
$params = $this->request->post(['type','license','pic']);
|
||||
if(!isset($params['type'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
if($params['type'] == 1){
|
||||
if(empty($params['license']) || empty($params['pic'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
@ -376,6 +379,7 @@ class VehicleController extends BaseApiController
|
||||
'self_num' => $selfCar,
|
||||
'apply_num' => $applyCar
|
||||
];
|
||||
dump($data);die;
|
||||
//返回
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user