This commit is contained in:
unknown 2023-09-04 21:08:13 +08:00
parent e1481db83d
commit 7b3ab8a065

View File

@ -108,7 +108,7 @@ class IndexController extends BaseApiController
//更新本地合同状态
$updateLocalRes = Contract::where('id',$contract['id'])->update(['signing_timer'=>1]);
//更新远程
$updateSverRes =curl_post(env('project.website_domain').'/api/index/notifyVehicleContractUpdate',[],[
$updateSverRes =curl_post(env('project.notify_domain').'/api/index/notifyVehicleContractUpdate',[],[
'contract_logistic_id' => $contract['id'],
'signing_timer' => 1,
]);
@ -134,12 +134,16 @@ class IndexController extends BaseApiController
'company_user' => $contract['company_b_user'],
'company_phone' => $contract['company_b_phone'],
'create_time' => time(),
'status' => 0
'status' => 0,
'use_user_id' => 0,
'use_user_name' => '',
'use_user_phone' => ''
];
}
$vehicleRent = new VehicleRent();
$vehicleRent -> saveAll($data);
curl_post(env('project.website_domain').'/api/index/notifyVehicleContractUpdate',[],[
//更新远程
curl_post(env('project.notify_domain').'/api/index/notifyVehicleContractUpdate',[],[
'contract_logistic_id' => $contract['id'],
'signing_timer' => 2,
'status' => 3