feat: add traffic.before_process hook

This commit is contained in:
xboard
2025-02-06 17:48:17 +08:00
parent 0d19332730
commit 667e02460c
2 changed files with 11 additions and 10 deletions

View File

@@ -134,16 +134,11 @@ class PluginController extends Controller
'code' => 'required|string'
]);
try {
$this->pluginManager->disable($request->input('code'));
return response()->json([
'message' => '插件禁用成功'
]);
} catch (\Exception $e) {
return response()->json([
'message' => '插件禁用失败:' . $e->getMessage()
], 400);
}
$this->pluginManager->disable($request->input('code'));
return response()->json([
'message' => '插件禁用成功'
]);
}
/**