...
|
...
|
@@ -600,8 +600,7 @@ class AdminCommonController extends AdminBaseController |
|
|
header('Content-disposition: attachment; filename='.basename($zipName)); //文件名
|
|
|
header("Content-Type: application/zip"); //zip格式的
|
|
|
header("Content-Transfer-Encoding: Binary"); //告诉浏览器,这是二进制文件
|
|
|
// header('Content-Length: '. filesize($zipName)); //告诉浏览器,文件大小
|
|
|
var_dump(2222);exit;
|
|
|
header('Content-Length: '. filesize($this->iconv_to_utf8($zipName))); //告诉浏览器,文件大小
|
|
|
ob_clean();//清楚缓存
|
|
|
flush();//刷新缓冲区的内容,输出
|
|
|
readfile($zipName);
|
...
|
...
|
|