This commit is contained in:
wangjinlei
2021-07-15 10:22:44 +08:00
parent 234745046d
commit 8ea54fdcc2
7 changed files with 12 additions and 176 deletions

View File

@@ -218,15 +218,6 @@ class Img extends Controller {
$re['url'] = 'public/zhengshu' . DS . 'zip' . DS . $data['course'] . '.zip';
return jsonSuccess($re);
//如果不要下载,下面这段删掉即可,如需返回压缩包下载链接,只需 return $zipName;
// header("Cache-Control: public");
// 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)); //告诉浏览器,文件大小
// @readfile($zipName);
}
/**