...
|
...
|
@@ -598,9 +598,9 @@ class AdminCommonController extends AdminBaseController |
|
|
header("Cache-Control: public");//任何情况下都可以得到资源参考:https://blog.csdn.net/u012375924/article/details/82806617
|
|
|
header("Content-Description: File Transfer");
|
|
|
header('Content-disposition: attachment; filename='.basename($zipName)); //文件名
|
|
|
// header("Content-Type: application/zip"); //zip格式的
|
|
|
// header("Content-Transfer-Encoding: Binary"); //告诉浏览器,这是二进制文件
|
|
|
header('Content-Length: '. filesize($zipName)); //告诉浏览器,文件大小
|
|
|
header("Content-Type: application/zip"); //zip格式的
|
|
|
header("Content-Transfer-Encoding: Binary"); //告诉浏览器,这是二进制文件
|
|
|
// header('Content-Length: '. filesize($zipName)); //告诉浏览器,文件大小
|
|
|
var_dump(2222);exit;
|
|
|
ob_clean();//清楚缓存
|
|
|
flush();//刷新缓冲区的内容,输出
|
...
|
...
|
|