fixed
This commit is contained in:
parent
87b5fbacd9
commit
1b5e2e9e7b
@ -111,7 +111,7 @@ class VehicleController extends BaseApiController
|
|||||||
if(empty($car)){
|
if(empty($car)){
|
||||||
return $this->fail('车辆数据有误');
|
return $this->fail('车辆数据有误');
|
||||||
}
|
}
|
||||||
$json = json_encode($car->toArray());
|
$json = json_encode([$car->toArray()]);
|
||||||
//更改车辆状态
|
//更改车辆状态
|
||||||
VehicleRent::where('car_id',$params['car_id'])->update(['status'=>1]);
|
VehicleRent::where('car_id',$params['car_id'])->update(['status'=>1]);
|
||||||
//更改状态
|
//更改状态
|
||||||
|
Loading…
x
Reference in New Issue
Block a user