This commit is contained in:
unknown 2023-08-26 17:21:18 +08:00
parent 75c4959858
commit f837b62980
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class VehicleController extends BaseApiController
//验证租赁数量
public function checkNum() {
//获取参数
$param = $this->request->get(['num']);
$param = $this->request->post(['num']);
if(empty($param['num'])){
return $this->fail('缺少必要参数');
}

View File

@ -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('getCarLocal','Vehicle/getCarLocal','get');
Route::rule('getCarHistory','Vehicle/getCarHistory','get');