|
@@ -10,6 +10,8 @@ use SixShop\Filesystem\Model\FilesystemFileModel;
|
|
|
use think\App;
|
|
use think\App;
|
|
|
use think\exception\ErrorException;
|
|
use think\exception\ErrorException;
|
|
|
|
|
|
|
|
|
|
+use function SixShop\Core\throw_logic_exception;
|
|
|
|
|
+
|
|
|
class FilesystemHook
|
|
class FilesystemHook
|
|
|
{
|
|
{
|
|
|
private bool $configInit = false;
|
|
private bool $configInit = false;
|
|
@@ -56,7 +58,7 @@ class FilesystemHook
|
|
|
], 'filesystem');
|
|
], 'filesystem');
|
|
|
$this->configInit = true;
|
|
$this->configInit = true;
|
|
|
} catch (ErrorException $e) {
|
|
} catch (ErrorException $e) {
|
|
|
- Helper::throw_logic_exception('filesystem配置错误');
|
|
|
|
|
|
|
+ throw_logic_exception('filesystem配置错误');
|
|
|
}
|
|
}
|
|
|
return $app->config->get($name);
|
|
return $app->config->get($name);
|
|
|
}
|
|
}
|