mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-23 01:55:23 +00:00
优化提示信息。echo对隐私信息脱敏
This commit is contained in:
parent
6144b8b301
commit
e073f165ac
@ -359,7 +359,7 @@ class AutoReseed
|
||||
} else {
|
||||
$errmsg = isset($result->result) ? $result->result : '未知错误,请稍后重试!';
|
||||
if ($is_url) {
|
||||
print "种子:".$torrent . PHP_EOL;
|
||||
print "种子:" . substr($torrent, 0, (strpos($torrent, 'passkey') ? strpos($torrent, 'passkey') : strlen($torrent))) . PHP_EOL;
|
||||
}
|
||||
print "-----RPC添加种子任务,失败 [{$errmsg}]" . PHP_EOL.PHP_EOL;
|
||||
}
|
||||
@ -375,7 +375,7 @@ class AutoReseed
|
||||
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 种子元数据添加下载任务
|
||||
}
|
||||
if ($is_url) {
|
||||
print "种子:".$torrent.PHP_EOL;
|
||||
print "种子:". substr($torrent, 0, (strpos($torrent, 'passkey') ? strpos($torrent, 'passkey') : strlen($torrent))) . PHP_EOL;
|
||||
}
|
||||
if ($result === 'Ok.') {
|
||||
print "********RPC添加下载任务成功 [{$result}]".PHP_EOL.PHP_EOL;
|
||||
@ -786,9 +786,11 @@ class AutoReseed
|
||||
}
|
||||
echo "种子URL已推送给下载器,下载器正在下载种子...".PHP_EOL;
|
||||
// 实际路径与相对路径之间互转
|
||||
echo '转换前:'.$downloadDir.PHP_EOL;
|
||||
$downloadDir = self::pathReplace($downloadDir);
|
||||
echo '转换后:'.$downloadDir.PHP_EOL;
|
||||
if (is_null($downloadDir)) {
|
||||
die("全局配置的move数组内,type配置错误,请重新配置!!!".PHP_EOL);
|
||||
die("全局配置的move数组内,路径转换参数配置错误,请重新配置!!!".PHP_EOL);
|
||||
}
|
||||
$ret = false;
|
||||
// 把拼接的种子URL,推送给下载器
|
||||
|
9
init.php
9
init.php
@ -32,6 +32,13 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
|
||||
} else {
|
||||
// 示例配置
|
||||
$configALL = require_once ROOT_PATH . '/config/config.sample.php';
|
||||
echo microtime(true).' 缺少config.php,已载入config.sample.php示例配置。'.PHP_EOL;
|
||||
echo microtime(true).' 请把配置文件改名为config.php,以免后续版本升级覆盖配置!!!'.PHP_EOL;
|
||||
$t = 30;
|
||||
do {
|
||||
echo microtime(true)." 请把配置文件改名为config.php,{$t}秒后继续...".PHP_EOL;
|
||||
sleep(1);
|
||||
} while (--$t > 0);
|
||||
}
|
||||
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
|
||||
// 读取支持列表
|
||||
@ -40,7 +47,7 @@ if (is_file(ROOT_PATH . "/config/sites.json")) {
|
||||
$configALL['sitesALL'] = json_decode($sitesJson, true);
|
||||
echo microtime(true).' 支持站点JSON载入完成!'.PHP_EOL;
|
||||
}
|
||||
|
||||
echo microtime(true).' 正在加载composer包管理器...'.PHP_EOL;
|
||||
require_once ROOT_PATH . '/vendor/autoload.php';
|
||||
echo microtime(true).' composer依赖载入完成!'.PHP_EOL;
|
||||
global $argv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user