mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-13 03:58:13 -05:00
fix(plugin): correct knows bugs
This commit is contained in:
parent
9a412ca570
commit
b1116e73c0
@ -413,7 +413,7 @@ class PluginManager
|
|||||||
throw new \Exception('插件配置文件格式错误');
|
throw new \Exception('插件配置文件格式错误');
|
||||||
}
|
}
|
||||||
|
|
||||||
$targetPath = $this->pluginPath . '/' . $config['code'];
|
$targetPath = $this->pluginPath . '/' . Str::studly($config['code']);
|
||||||
if (File::exists($targetPath)) {
|
if (File::exists($targetPath)) {
|
||||||
File::deleteDirectory($extractPath);
|
File::deleteDirectory($extractPath);
|
||||||
throw new \Exception('插件已存在');
|
throw new \Exception('插件已存在');
|
||||||
|
Loading…
Reference in New Issue
Block a user