mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
Update global_functions.php
This commit is contained in:
@@ -296,7 +296,7 @@ function bot() {
|
|||||||
function getAllFdByConnectType(string $type = 'default'): array {
|
function getAllFdByConnectType(string $type = 'default'): array {
|
||||||
$fds = [];
|
$fds = [];
|
||||||
foreach (ManagerGM::getAllByName($type) as $obj) {
|
foreach (ManagerGM::getAllByName($type) as $obj) {
|
||||||
array_push($fd, $obj->getFd());
|
$fds[] = $obj->getFd();
|
||||||
}
|
}
|
||||||
return $fds;
|
return $fds;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user