update to 2.2.2 version

fix QQBot error
clean code
This commit is contained in:
jerry
2021-01-29 22:27:10 +08:00
parent a55cd4ed05
commit f3e844bb0a
11 changed files with 41 additions and 13 deletions

View File

@@ -51,4 +51,8 @@ class ZMUtil
return ZMBuf::$instance[$class];
}
}
public static function sendActionToWorker($target_id, $action, $data) {
server()->sendMessage(json_encode(["action" => $action, "data" => $data]), $target_id);
}
}