Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
chenbo 2023-10-19 10:59:28 +08:00
commit edd8d051f9

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);