Commit f7c06182 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent bde810a1
......@@ -552,10 +552,10 @@ class InvoiceService
//验证token
$urlParams = [
'platform_invoice_id' => $invoiceInfo['platform_invoice_id'],
'invoice_real_number' => $params['invoice_real_number'],
'invoice_real_number' => $invoiceInfo['invoice_real_number'],
'invoice_real_date' => $invoiceInfo['invoice_real_date']
];
$token = hash_hmac("sha256", json_encode($urlParams), $params['invoice_real_number'], false);
$token = hash_hmac("sha256", json_encode($urlParams), $invoiceInfo['invoice_real_number'], false);
if($token != $params['token']){
throw new \Exception('电子发票无效无法提供下载',502);
}
......
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