Skip to content

Commit

Permalink
fix(plugin): correct knows bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Feb 9, 2025
1 parent 46a8c12 commit a31a556
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Services/Plugin/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ public function enable(string $pluginCode): bool
'is_enabled' => true,
'updated_at' => now(),
]);

// 初始化插件
if (method_exists($plugin, 'boot')) {
$plugin->boot();
Expand Down Expand Up @@ -351,7 +350,7 @@ public function delete(string $pluginCode): bool
$this->uninstall($pluginCode);
}

$pluginPath = $this->pluginPath . '/' . $pluginCode;
$pluginPath = $this->getPluginPath($pluginCode);
if (!File::exists($pluginPath)) {
throw new \Exception('插件不存在');
}
Expand Down

0 comments on commit a31a556

Please sign in to comment.