mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 03:57:27 +08:00
fix(plugin): correct knows bugs
This commit is contained in:
@@ -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('插件已存在');
|
||||
|
||||
Reference in New Issue
Block a user