update
This commit is contained in:
parent
5365c40389
commit
2a05144633
@ -338,7 +338,7 @@ class VehicleController extends BaseApiController
|
|||||||
//获取申请信息
|
//获取申请信息
|
||||||
$vehicleContract = VehicleContract::where('company_b_id',$company['id'])->order('id desc')->find();
|
$vehicleContract = VehicleContract::where('company_b_id',$company['id'])->order('id desc')->find();
|
||||||
if(empty($vehicleContract)){
|
if(empty($vehicleContract)){
|
||||||
return $this->fail('数据有误');
|
return $this->success('没有数据,请申请');
|
||||||
}
|
}
|
||||||
if(!empty($vehicleContract['cars_info'])){
|
if(!empty($vehicleContract['cars_info'])){
|
||||||
$vehicleContract['cars_info'] = json_decode($vehicleContract['cars_info'],true);
|
$vehicleContract['cars_info'] = json_decode($vehicleContract['cars_info'],true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user