From b1116e73c0b447307d70007d569526bb2099811d Mon Sep 17 00:00:00 2001 From: xboard Date: Sun, 9 Feb 2025 23:36:19 +0800 Subject: [PATCH] fix(plugin): correct knows bugs --- app/Services/Plugin/PluginManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Plugin/PluginManager.php b/app/Services/Plugin/PluginManager.php index 863f7ea..b8f4279 100644 --- a/app/Services/Plugin/PluginManager.php +++ b/app/Services/Plugin/PluginManager.php @@ -413,7 +413,7 @@ class PluginManager throw new \Exception('插件配置文件格式错误'); } - $targetPath = $this->pluginPath . '/' . $config['code']; + $targetPath = $this->pluginPath . '/' . Str::studly($config['code']); if (File::exists($targetPath)) { File::deleteDirectory($extractPath); throw new \Exception('插件已存在');