* Modify download fail when batch load.

This commit is contained in:
qiyu-xie
2021-07-29 09:32:43 +08:00
parent 689d01a15c
commit d097328cfd
+3 -2
View File
@@ -171,7 +171,7 @@ class file extends control
$zipPath = $this->file->savePath . $zipName;
if (!file_exists($zipName))
{
if($zip->open($zipPath, ZipArchive::OVERWRITE | ZipArchive::OVERWRITE) == true)
if($zip->open($zipPath, ZipArchive::OVERWRITE) == true)
{
foreach($files as $file)
{
@@ -179,11 +179,12 @@ class file extends control
}
$zip->close();
$this->sendDownHeader($zipName, 'zip', $zipPath, 'file');
}
else
{
die(js::locate('Create failed!'));
die(js::error('Create failed!'));
}
}
}