mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update to 1.5.1 version
fix a warning bug
This commit is contained in:
@@ -38,7 +38,7 @@ class MessageEvent
|
|||||||
* @throws AnnotationException
|
* @throws AnnotationException
|
||||||
*/
|
*/
|
||||||
public function onBefore() {
|
public function onBefore() {
|
||||||
$obj_list = ZMBuf::$events[CQBefore::class]["message"];
|
$obj_list = ZMBuf::$events[CQBefore::class]["message"] ?? [];
|
||||||
foreach ($obj_list as $v) {
|
foreach ($obj_list as $v) {
|
||||||
if($v->level < 200) break;
|
if($v->level < 200) break;
|
||||||
EventHandler::callWithMiddleware(
|
EventHandler::callWithMiddleware(
|
||||||
|
|||||||
Reference in New Issue
Block a user