...
|
...
|
@@ -584,7 +584,7 @@ class AdminCommonController extends AdminBaseController |
|
|
}
|
|
|
$zip->close();//关闭
|
|
|
|
|
|
chmod($zipName, 0777);
|
|
|
chmod($zipName, 0777);//适用于linux
|
|
|
|
|
|
// if(!file_exists($zipName)){
|
|
|
// exit("无法找到文件"); //即使创建,仍有可能失败
|
...
|
...
|
@@ -604,8 +604,8 @@ class AdminCommonController extends AdminBaseController |
|
|
ob_clean();//清楚缓存
|
|
|
flush();//刷新缓冲区的内容,输出
|
|
|
readfile($zipName);
|
|
|
//unlink($zipName); //删除压缩包临时文件
|
|
|
//$this->delDirAndFile('upload/export',1);
|
|
|
// unlink($zipName); //删除压缩包临时文件
|
|
|
$this->delDirAndFile(ROOT_PATH . 'public/upload/export/',1);
|
|
|
exit;
|
|
|
}
|
|
|
|
...
|
...
|
|