This commit is contained in:
unknown 2023-08-31 20:28:28 +08:00
parent 18b733ec6b
commit b136ea6019
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class VehicleValidate extends BaseValidate
*/
public function sceneAdd()
{
return $this->only(['license','gps_imei','type','status']);
return $this->only(['license','gps_imei']);
}

View File

@ -102,6 +102,7 @@ class VehicleController extends BaseApiController
public function updateVehicleRent(){
//获取参数
$params = $this->request->post(['car_id','use_user_id','use_user_name','use_user_phone']);
dump($params);die;
if(empty($params['car_id']) || empty($params['use_user_id']) || empty($params['use_user_name']) || empty($params['use_user_phone'])){
return false;
}