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