Merge pull request 'update' (#109) from zhangwei into dev

Reviewed-on: #109
This commit is contained in:
weiz 2023-10-18 11:16:44 +08:00
commit ecfaf3c1bf

View File

@ -524,8 +524,8 @@ class IndexController extends BaseApiController
return $this->fail($curl_result['msg'].' from logistic');
}
//生成本地合同
VehicleContract::create($curl_result['data']);
VehicleBuyRecord::where('id',$vehicleBuyRecord['id'])->update(['status'=>3]);
$res = VehicleContract::create($curl_result['data']);
VehicleBuyRecord::where('id',$vehicleBuyRecord['id'])->update(['status'=>3,'contract_id'=>$res->id]);
return json(['success' => true, 'msg' => '成功']);
}
//镇街公司与平台公司解约