Merge pull request 'update' (#111) from zhangwei into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/111
This commit is contained in:
commit
1a321f9f35
@ -378,10 +378,10 @@ class VehicleController extends BaseApiController
|
||||
//获取申请信息
|
||||
$vehicleContract = VehicleContract::where('company_b_id',$company['id'])->order('id desc')->find();
|
||||
if(empty($vehicleContract)){
|
||||
return $this->success('没有数据,请申请',['status'=>-1]);
|
||||
return $this->success('没有数据,请申请',['status'=>-2]);
|
||||
}
|
||||
if($vehicleContract['type'] == 2){
|
||||
return $this->success('合同已解除',['status'=>-1]);
|
||||
return $this->success('合同已解除',['status'=>-3]);
|
||||
}
|
||||
if($vehicleContract['status'] == 3){
|
||||
if(!empty($vehicleContract['cars_info'])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user