// 文件下载
public function download(){
$file = '文件路径';
header('Content-type:text/html;application/octet-stream');
header('Content-Dispoistion: attachment; filename='.basename($file).'"');
header('Content-length: '.filesize($file));
readfile($file);
}