修改签约回调

This commit is contained in:
unknown 2023-08-25 17:02:47 +08:00
parent 4b11877487
commit bc7efbb6d4
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,8 @@ class IndexController extends BaseApiController
{ {
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication']; public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication','test'];
/** /**
@ -121,7 +122,7 @@ class IndexController extends BaseApiController
$company = Db::name('company')->where('id',$vehicleRent['party_b'])->find(); $company = Db::name('company')->where('id',$vehicleRent['party_b'])->find();
//通知物流系统 //通知物流系统
if($vehicleRent && $company){ if($vehicleRent && $company){
$result = curl_post('http://logistics.lihaink.cn/api/updateRentRecord', [], [ $result = curl_post('http://logistics.lihaink.cn/api/vehicleRent', [], [
'contract_id' => $a['id'], 'contract_id' => $a['id'],
'car_id' => $vehicleRent['car_ids'], 'car_id' => $vehicleRent['car_ids'],
'company_id' => $company['id'], 'company_id' => $company['id'],

View File

@ -28,7 +28,10 @@ class VehicleLogic extends BaseLogic
Db::startTrans(); Db::startTrans();
try { try {
$contract = Contract::create([ $contract = Contract::create([
'admin_id' => 0,
'company_id' =>0,
'contract_type' => 29, 'contract_type' => 29,
'file' => '',
'contract_no' => time(), 'contract_no' => time(),
'create_time' => time(), 'create_time' => time(),
'update_time' => time(), 'update_time' => time(),