This repository was archived by the owner on Mar 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,15 @@ $config=[
58
58
" public_port" => 4000,//服务端口
59
59
" CLUSTER_ID" => " " ,
60
60
" CLUSTER_SECRET" => " " ,
61
+ ],
62
+ " file" => [
61
63
" cache_dir" => " ./cache" ,//缓存文件夹
62
- " keepalive " => 60 ,//间隔keepalive时间,秒为单位
64
+ " check " => " hash " ,//检查文件策略(hash:检查文件hash size:检查文件大小 exists:检查文件是否存在)
63
65
],
64
66
" advanced" => [
65
- " MaxConcurrent" => 10,//下载使用的线程
66
- " Debug" => false,//Debug开关
67
+ " keepalive" => 60,//keepalive时间,秒为单位(不建议调整)
68
+ " MaxConcurrent" => 30,//下载使用的线程
69
+ " Debug" => true,//Debug开关
67
70
],
68
71
];
69
72
` ` `
Original file line number Diff line number Diff line change 7
7
"public_port " => 4000 ,//服务端口
8
8
"CLUSTER_ID " => "" ,
9
9
"CLUSTER_SECRET " => "" ,
10
+ ],
11
+ "file " => [
10
12
"cache_dir " => "./cache " ,//缓存文件夹
11
- "keepalive " => 60 ,//间隔keepalive时间,秒为单位
13
+ "check " => " hash " ,//检查文件策略(hash:检查文件hash size:检查文件大小 exists:检查文件是否存在)
12
14
],
13
15
"advanced " => [
14
- "MaxConcurrent " => 10 ,//下载使用的线程
16
+ "keepalive " => 60 ,//keepalive时间,秒为单位(不建议调整)
17
+ "MaxConcurrent " => 30 ,//下载使用的线程
15
18
"Debug " => false ,//Debug开关
16
19
],
17
20
];
Original file line number Diff line number Diff line change 3
3
use function Swoole \Coroutine \run ;
4
4
use function Swoole \Timer ;
5
5
declare (ticks=1 )
6
- require './config .php ' ;
6
+ require './configstaging .php ' ;
7
7
const PHPOBAVERSION = '0.0.1 ' ;
8
8
const VERSION = '1.10.3 ' ;
9
9
global $ DOWNLOAD_DIR ;
10
- $ DOWNLOAD_DIR = $ config ['cluster ' ]['cache_dir ' ];
10
+ $ DOWNLOAD_DIR = $ config ['file ' ]['cache_dir ' ];
11
11
const USERAGENT = 'openbmclapi-cluster/ ' . VERSION . ' ' . 'PHP-OpenBmclApi/ ' .PHPOBAVERSION ;
12
- const OPENBMCLAPIURL = 'openbmclapi.bangbang93.com ' ;
12
+ const OPENBMCLAPIURL = 'openbmclapi.staging. bangbang93.com ' ;
13
13
global $ tokendata ;
14
14
$ list = glob ('inc/*.php ' );
15
15
foreach ($ list as $ file ) {
You can’t perform that action at this time.
0 commit comments