Commit d0755081 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 4b627005
......@@ -512,8 +512,8 @@ class InvoiceService
'invoice_real_number' => $invoiceParams['invoice_real_number'],
'invoice_real_date' => $invoiceParams['invoice_real_date']
];
$token = base64_encode(hash_hmac("sha256", json_encode($urlParams), $invoiceParams['invoice_real_number'], true));
$downloadUrl = 'http://openapi.chem-site.com/finance/invoice/download?token='.$token;
$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']);
$customerInfo = json_decode($invoiceParams['invoice_customer'],true);
......@@ -541,7 +541,6 @@ class InvoiceService
public function getInvoicePdfDownloadUrl()
{
}
}
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