From a12598eda39f01b98f3bbb91fec258bff80e9a50 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Tue, 9 Dec 2025 17:40:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD=E4=BA=8B=E4=BB=B6=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E8=A2=AB=E7=9B=91=E5=90=AC=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/common.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/app/common.php b/src/app/common.php index 1cbeadd9b..ff1056f6a 100644 --- a/src/app/common.php +++ b/src/app/common.php @@ -633,6 +633,17 @@ function addon_is_exit($name, $site_id = 0) } /***************************************************LuckySaaS系统函数***************************************************/ + +/** + * 检测事件是否存在 + * @param string $event + * @return bool + */ +function hasEvent($event) +{ + return Event::hasListener($event); +} + /** * 处理事件 *