From a31a55601e0f7ce928b0c717174e69c2c2851e36 Mon Sep 17 00:00:00 2001 From: xboard Date: Mon, 10 Feb 2025 00:32:17 +0800 Subject: [PATCH] fix(plugin): correct knows bugs --- app/Services/Plugin/PluginManager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Services/Plugin/PluginManager.php b/app/Services/Plugin/PluginManager.php index 711ce2b..48084d1 100644 --- a/app/Services/Plugin/PluginManager.php +++ b/app/Services/Plugin/PluginManager.php @@ -288,7 +288,6 @@ class PluginManager 'is_enabled' => true, 'updated_at' => now(), ]); - // 初始化插件 if (method_exists($plugin, 'boot')) { $plugin->boot(); @@ -351,7 +350,7 @@ class PluginManager $this->uninstall($pluginCode); } - $pluginPath = $this->pluginPath . '/' . $pluginCode; + $pluginPath = $this->getPluginPath($pluginCode); if (!File::exists($pluginPath)) { throw new \Exception('插件不存在'); }