This commit is contained in:
Default
2025-04-15 16:33:25 +08:00
parent ccdae1e854
commit 5893a41166
23 changed files with 1686 additions and 1080 deletions

View File

@@ -75,10 +75,14 @@ class StorageCore
public function read($strKey)
{
$Stream = $this->Filesystem->readStream($strKey);
$strContent = stream_get_contents($Stream);
$strContent = zstd_uncompress($strContent);
return $strContent;
try {
$Stream = $this->Filesystem->readStream($strKey);
$strContent = stream_get_contents($Stream);
$strContent = zstd_uncompress($strContent);
return $strContent;
} catch (\Exception $e) {
return '';
}
}
public function has($strKey)