d
This commit is contained in:
parent
75c4959858
commit
f837b62980
@ -18,7 +18,7 @@ class VehicleController extends BaseApiController
|
|||||||
//验证租赁数量
|
//验证租赁数量
|
||||||
public function checkNum() {
|
public function checkNum() {
|
||||||
//获取参数
|
//获取参数
|
||||||
$param = $this->request->get(['num']);
|
$param = $this->request->post(['num']);
|
||||||
if(empty($param['num'])){
|
if(empty($param['num'])){
|
||||||
return $this->fail('缺少必要参数');
|
return $this->fail('缺少必要参数');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ Route::rule('hasCourier','Logistics/hasCourier','get');
|
|||||||
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------------------------*/
|
||||||
Route::rule('checkNum','Vehicle/checkNum','get');
|
Route::rule('checkNum','Vehicle/checkNum','post');
|
||||||
Route::rule('vehicleRent','Vehicle/vehicleRent','post');
|
Route::rule('vehicleRent','Vehicle/vehicleRent','post');
|
||||||
Route::rule('getCarLocal','Vehicle/getCarLocal','get');
|
Route::rule('getCarLocal','Vehicle/getCarLocal','get');
|
||||||
Route::rule('getCarHistory','Vehicle/getCarHistory','get');
|
Route::rule('getCarHistory','Vehicle/getCarHistory','get');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user