feat: add traffic.before_process hook

This commit is contained in:
xboard committed 2025-02-06 17:48:17 +08:00
1 parent 2af70545ad
commit 85d3e0a22c
2 files changed
+11 -10

No files matched your search

@@ -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' => '插件禁用成功'
]);
}
/**