Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 2297da8

Browse files
committed
🎨 删除一些没必要的引用
1 parent 6a3b1ba commit 2297da8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

main.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
$DOWNLOAD_DIR = $config['file']['cache_dir'];
1111
const USERAGENT = 'openbmclapi-cluster/' . VERSION . ' ' . 'PHP-OpenBmclApi/'.PHPOBAVERSION;
1212
const OPENBMCLAPIURL = 'openbmclapi.bangbang93.com';
13-
global $tokendata;
1413
$list = glob('inc/*.php');
1514
foreach ($list as $file) {
1615
require $file;
@@ -51,7 +50,6 @@ function registerSigintHandler() {
5150
$tokendata = $token->gettoken();
5251
mlog("GetNewToken:".$tokendata['token'],1);
5352
});
54-
global $socketio;
5553
registerSigintHandler();
5654
mlog("Timer start on ID{$tokentimeid}",1);
5755

@@ -133,7 +131,6 @@ function registerSigintHandler() {
133131
fclose($cert);
134132
}
135133
global $httpserver;
136-
global $DOWNLOAD_DIR;
137134
$httpserver = new fileserver($config['cluster']['host'],$config['cluster']['port'],$config['cluster']['CLUSTER_ID'].'.crt',$config['cluster']['CLUSTER_ID'].'.key',$config['cluster']['CLUSTER_SECRET']);
138135
Coroutine::create(function () use ($config,$httpserver){
139136
$httpserver->startserver();

0 commit comments

Comments
 (0)