Commit f5761843 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent a6cd5103
...@@ -233,7 +233,11 @@ class InvoiceService ...@@ -233,7 +233,11 @@ class InvoiceService
return true; return true;
} }
}catch(\Throwable $exception){ }catch(\Throwable $exception){
switch($invoiceParams['invoice_platform']){ $update = [];
$update['invoice_number'] = $result['invoice_number'];
$update['api_response'] = $exception->getMessage();
$this->saveInvoiceRecord($update);
/*switch($invoiceParams['invoice_platform']){
case 'rhawn' : case 'rhawn' :
$updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($invoiceParams['platform_invoice_id'], [ $updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($invoiceParams['platform_invoice_id'], [
'soi_api_status' => 2, 'soi_api_status' => 2,
...@@ -244,7 +248,7 @@ class InvoiceService ...@@ -244,7 +248,7 @@ class InvoiceService
'soi_api_status' => 2, 'soi_api_status' => 2,
'soi_no' => mb_substr($exception->getMessage(),0,250,'utf-8') 'soi_no' => mb_substr($exception->getMessage(),0,250,'utf-8')
]);break; ]);break;
} }*/
} }
} }
...@@ -384,6 +388,7 @@ class InvoiceService ...@@ -384,6 +388,7 @@ class InvoiceService
$saveParams['invoice_customer'] = $invoiceParams['invoice_customer']; $saveParams['invoice_customer'] = $invoiceParams['invoice_customer'];
} }
} }
$saveParams['api_response'] = '';
$result = $this->invoiceRecordRepository->saveInvoice($saveParams); $result = $this->invoiceRecordRepository->saveInvoice($saveParams);
......
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