Commit 4322a3f1 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent b9c222a8
......@@ -556,9 +556,9 @@ class InvoiceService
'invoice_real_date' => $invoiceInfo['invoice_real_date']
];
$token = hash_hmac("sha256", json_encode($urlParams), $invoiceInfo['invoice_real_number'], false);
if($token != $params['token']){
/*if($token != $params['token']){
throw new \Exception('电子发票无效无法提供下载',502);
}
}*/
$filename = $invoiceInfo['platform_invoice_id'].'_'.$invoiceInfo['invoice_number'].'_'.$invoiceInfo['invoice_real_date'].'.pdf';
$path = config('filesystems.default.root').'public/finance/invoice/'.$invoiceInfo['invoice_platform'].'/'.$invoiceInfo['platform_invoice_id'].'/';
......
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