no commit message
This commit is contained in:
@@ -5,11 +5,11 @@ require __DIR__ . '/vendor/autoload.php';
|
||||
use Workerman\Worker;
|
||||
use PHPSocketIO\SocketIO;
|
||||
|
||||
// 加载环境变量
|
||||
$env = parse_ini_file(__DIR__ . '/.env');
|
||||
$push_config = $env['push'] ?? [];
|
||||
$socket_port = $push_config['socket_port'] ?? 22121;
|
||||
$http_port = $push_config['http_port'] ?? 22120;
|
||||
// 加载环境变量(第二个参数true表示解析sections)
|
||||
$env = parse_ini_file(__DIR__ . '/.env', true);
|
||||
$push_config = isset($env['push']) ? $env['push'] : [];
|
||||
$socket_port = isset($push_config['socket_port']) ? intval($push_config['socket_port']) : 22121;
|
||||
$http_port = isset($push_config['http_port']) ? intval($push_config['http_port']) : 22120;
|
||||
|
||||
// 全局数组保存uid在线数据
|
||||
$uidConnectionMap = [];
|
||||
|
||||
Reference in New Issue
Block a user