Merge pull request 'fixed' (#94) from zhangwei into dev
Reviewed-on: #94
This commit is contained in:
commit
5e6efdcf1d
@ -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