chore: 添加通用的判断事件是否被监听函数

This commit is contained in:
2025-12-09 17:40:26 +08:00
parent 7478e04472
commit a12598eda3

View File

@@ -633,6 +633,17 @@ function addon_is_exit($name, $site_id = 0)
} }
/***************************************************LuckySaaS系统函数***************************************************/ /***************************************************LuckySaaS系统函数***************************************************/
/**
* 检测事件是否存在
* @param string $event
* @return bool
*/
function hasEvent($event)
{
return Event::hasListener($event);
}
/** /**
* 处理事件 * 处理事件
* *