Commit b2233beb authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 13e0e3a1
...@@ -105,11 +105,7 @@ class InvoiceController extends Controller ...@@ -105,11 +105,7 @@ class InvoiceController extends Controller
$headers = [ $headers = [
'Content-Type: application/pdf', 'Content-Type: application/pdf',
]; ];
//下载电子发票 return Response::success($result['downloadUrl'],'');
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: utf-8");
header("Content-disposition: attachment; filename=\"" . basename($result['filename']) . "\"");
readfile($result['downloadUrl']);
}catch(\Throwable $exception){ }catch(\Throwable $exception){
return $this->returnErrorExecptionResponse($exception,$exception->getMessage()); return $this->returnErrorExecptionResponse($exception,$exception->getMessage());
} }
......
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