$data = [
'type' => intval($_GET['type']),
'title' => !empty($teams[$_GET['team_id']]['name']) ?$teams[$_GET['team_id']]['name'] : '直播员',
'logo' => !empty($teams[$_GET['team_id']]['logo']) ?$teams[$_GET['team_id']]['logo'] : '',
'content' => !empty($_GET['content']) ? $_GET['content'] : '',
'image' => !empty($_GET['image']) ? $_GET['image'] : '',
];
foreach($_POST['http_server']->ports[0]->connections as $fd) {
$_POST['http_server']->push($fd, json_encode($data));
}
return Util::show(config('code.success'), 'ok');
无返回,改成ports[1],会正常return,是不支持ports[0]吗,还是我写的有问题