更新 zip 组件

This commit is contained in:
JaguarJack 2021-05-13 08:45:47 +08:00
parent dd32637d56
commit 5deae744c4

View File

@ -42,7 +42,7 @@ class Zip
throw new \Exception("make zip muse set [zip] extension"); throw new \Exception("make zip muse set [zip] extension");
} }
$this->zipArchive->open($zip, $flags); $this->zipArchive->open($zip, $flags ? : \ZipArchive::CREATE);
return $this; return $this;
} }