Commit c66c6e55 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent cea8534c
......@@ -462,6 +462,7 @@ class InvoiceService
$updateInvoice['invoice_pdf_url'] = $invoiceResponse['pdf'];
$updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice);
if($updatedInvoiceResult){
//对平台的发票信息进行更新
$updateResult = null;
......@@ -480,10 +481,12 @@ class InvoiceService
if($updateResult){
//获取发票地址
$this->sendInvoiceEmail($updatedInvoiceResult);
$this->apiService->removePlatformDataEntries('invoice_callBack_'.$invoiceResponse['ddlsh'].'_applyInvoice');
}
}else{
$updateInvoice['invoice_status'] = 2;
$updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice);
$this->apiService->removePlatformDataEntries('invoice_callBack_'.$invoiceResponse['ddlsh'].'_applyInvoice');
}
}
}catch(\Throwable $exception){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment