no commit message
This commit is contained in:
@@ -1638,7 +1638,11 @@ function writeLog($log = '', $level = "writelog") {
|
||||
* @return bool
|
||||
*/
|
||||
function pushToAllClients($eventName, $data) {
|
||||
$socketUrl = 'http://127.0.0.1:2121';
|
||||
// 读取.env文件中的push配置(INI格式,包含sections)
|
||||
$env = parse_ini_file(__DIR__ . '/../.env', true);
|
||||
$push_config = isset($env['push']) ? $env['push'] : [];
|
||||
$http_port = isset($push_config['http_port']) ? intval($push_config['http_port']) : 22120;
|
||||
$socketUrl = 'http://127.0.0.1:' . $http_port;
|
||||
|
||||
$postData = [
|
||||
'type' => 'broadcast',
|
||||
|
||||
Reference in New Issue
Block a user