Commit 0848f2fa authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 46cc3397
......@@ -506,7 +506,7 @@ class InvoiceService
{
$updatedInvoiceResult = $this->invoiceRecordRepository->getInvoiceRecordByNumber($params);
$this->apiService->pushQueue([
'params' => $updatedInvoiceResult,
'params' => current($updatedInvoiceResult),
'consumer' => __CLASS__,
'method' => 'sendInvoiceEmail'
],'invoiceEmailPush');
......@@ -515,9 +515,12 @@ class InvoiceService
public function sendInvoiceEmail($invoiceParams)
{
$sended = $this->apiService->getPlatformDataEntries('invoice_sended_mail_list','data_values');
if(in_array($invoiceParams['invoice_real_number'],json_decode($sended,true))){
return true;
if($sended){
if(in_array($invoiceParams['invoice_real_number'],json_decode($sended,true))){
return true;
}
}
$sended = array($sended);
//获取发票地址
if(isset($invoiceParams['invoice_pdf_url']) && !empty($invoiceParams['invoice_pdf_url'])){
......
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