Commit 13e0e3a1 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 6a98f56d
...@@ -109,7 +109,7 @@ class InvoiceController extends Controller ...@@ -109,7 +109,7 @@ class InvoiceController extends Controller
header('Content-Type: application/octet-stream'); header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: utf-8"); header("Content-Transfer-Encoding: utf-8");
header("Content-disposition: attachment; filename=\"" . basename($result['filename']) . "\""); header("Content-disposition: attachment; filename=\"" . basename($result['filename']) . "\"");
readfile($result['path']); 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