修复重新发送合同bug

This commit is contained in:
weiz 2023-10-19 10:53:03 +08:00
parent 8b56240eaa
commit a537f98180

View File

@ -144,7 +144,7 @@ class VehicleContractController extends BaseAdminController
if($contract->isEmpty()){
return $this->fail('数据不存在');
}
if($contract['status'] != 1){
if(!($contract['status'] == 1 || ($contract['status'] == 2 && $contract['signing_timer'] != 2))){
return $this->fail('合同状态错误');
}
$signData = [
@ -178,13 +178,15 @@ class VehicleContractController extends BaseAdminController
$contract->save([
'id' => $contract['id'],
'contract_no' => $signRes->data,
'status' => 2
'status' => 2,
'signing_timer' => 0
]);
if(!empty($contract['contract_logistic_id'])){
curl_post(env('project.logistic_domain').'/api/contractUpdate',[],[
'id' => $contract['contract_logistic_id'],
'contract_no' => $signRes->data,
'status' => 2,
'signing_timer' => 0
]);
}
$this->sendSms($params['id'],$smsTitle);