优化下载免费种命令

This commit is contained in:
iyuu.cn
2020-01-14 12:04:31 +08:00
parent 3b8cbbd339
commit 348adfdcea
3 changed files with 46 additions and 0 deletions

13
app/download/ly.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* 作用添加聆音阅听专区30页小包方便大家赚魔力
* 使用方法:放入/app/ 目录下即可。
*/
require_once __DIR__ . '/../init.php';
$start = 0;
$end = 30;
$url = 'live.php?inclbookmarked=0&incldead=1&spstate=0&&sort=5&type=asc&page={}';
while ($start <= $end) {
soulvoice::run(str_replace('{}', $start, $url), false);
$start++;
}

3
app/download/sample.php Normal file
View File

@ -0,0 +1,3 @@
<?php
require_once __DIR__ . '/../init.php';
Mteam::run();

30
download.php Normal file
View File

@ -0,0 +1,30 @@
<?php
require_once __DIR__ . '/app/init.php';
global $argv;
if(count($argv) < 2){
echo "--执行下载命令时,缺少站点参数,请查阅“常见问题”,获取站点参数!!\n\n";
exit(1);
}
$start_file = $argv[0];
$command = strtolower(trim($argv[1]));
$command2 = isset($argv[2]) ? $argv[2] : '';
if(is_file(APP_PATH.DS.'Protocols'.DS.$command.'.php')){
switch ($command) {
case 'start':
break;
case 'status':
break;
case 'stop':
break;
case 'restart':
break;
case 'reload':
break;
default :
$command::run();
break;
}
}else{
echo '解码文件:'.APP_PATH.DS.'Protocols'.DS.$command.'.php'." 不存在 \n\n";
exit(1);
}