Commit 6500b2b2 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent d0755081
...@@ -513,7 +513,7 @@ class InvoiceService ...@@ -513,7 +513,7 @@ class InvoiceService
'invoice_real_date' => $invoiceParams['invoice_real_date'] 'invoice_real_date' => $invoiceParams['invoice_real_date']
]; ];
$token = hash_hmac("sha256", json_encode($urlParams), $invoiceParams['invoice_real_number'], true); $token = hash_hmac("sha256", json_encode($urlParams), $invoiceParams['invoice_real_number'], true);
$downloadUrl = 'http://openapi.chem-site.com/finance/invoice/download?'.base64_encode('token='.$token.'&hm='.$invoiceParams['invoice_real_number']); $downloadUrl = 'http://openapi.chem-site.com/finance/invoice/download?token='.base64_encode('hash='.$token.'&hm='.$invoiceParams['invoice_real_number']);
$customerInfo = json_decode($invoiceParams['invoice_customer'],true); $customerInfo = json_decode($invoiceParams['invoice_customer'],true);
......
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