fix(plugin): correct knows bugs

This commit is contained in:
xboard 2025-02-09 23:36:19 +08:00
parent 9a412ca570
commit b1116e73c0

View File

@ -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('插件已存在');