Commit 2aa562bb authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 8bd43725
...@@ -548,12 +548,16 @@ class InvoiceService ...@@ -548,12 +548,16 @@ class InvoiceService
$path = config('filesystems.default.root').'public/finance/invoice/'.$invoiceParams['invoice_platform'].'/'.$invoiceParams['platform_invoice_id'].'/'; $path = config('filesystems.default.root').'public/finance/invoice/'.$invoiceParams['invoice_platform'].'/'.$invoiceParams['platform_invoice_id'].'/';
$this->saveInvoicePdf($path.$filename, $invoiceParams['invoice_pdf_url']); $this->saveInvoicePdf($path.$filename, $invoiceParams['invoice_pdf_url']);
}else{ }else{
$this->apiService->pushQueue([ $invoiceResult = $this->invoiceRecordRepository->getInvoiceRecordByNumber($invoiceParams['invoice_number']);
'params' => $invoiceParams, $invoiceResult = current($invoiceResult);
'consumer' => __CLASS__, if(empty($invoiceResult['invoice_pdf_url'])){
'method' => 'sendInvoiceEmail' $this->apiService->pushQueue([
],'invoiceEmailPush'); 'params' => $invoiceParams,
return true; 'consumer' => __CLASS__,
'method' => 'sendInvoiceEmail'
],'invoiceEmailPush');
return true;
}
} }
//生成download发票的url //生成download发票的url
$urlParams = [ $urlParams = [
......
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