Commit 2aa562bb authored by hangjun83's avatar hangjun83

财务开票模块更新

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