mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
fix stan
This commit is contained in:
@@ -6,6 +6,7 @@ namespace ZM\Utils;
|
||||
|
||||
use OneBot\V12\Object\ActionResponse;
|
||||
use ZM\Context\BotContext;
|
||||
use ZM\Exception\FileSystemException;
|
||||
use ZM\Store\FileSystem;
|
||||
|
||||
/**
|
||||
@@ -30,7 +31,7 @@ class OneBot12FileDownloader
|
||||
try {
|
||||
FileSystem::createDir($this->download_path);
|
||||
return true;
|
||||
} catch (\RuntimeException $e) {
|
||||
} catch (FileSystemException $e) {
|
||||
$this->err = $e->getMessage();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user