chore: 添加通用的判断事件是否被监听函数
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理事件
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user