mirror of
https://github.com/ledccn/IYUUPlus.git
synced 2024-09-20 07:05:28 +00:00
fixed
This commit is contained in:
parent
2ed85d89d0
commit
a125fd5e20
|
@ -757,14 +757,14 @@ class AutoReseed
|
|||
|
||||
/**
|
||||
* 辅种前置检查
|
||||
* @param int $k 客户端key
|
||||
* @param int|string $k 客户端key
|
||||
* @param array $torrent 可辅的种子
|
||||
* @param array $infohash_Dir 当前客户端hash目录对应字典
|
||||
* @param string $downloadDir 辅种目录
|
||||
* @param string $_url 种子临时连接
|
||||
* @return bool true 可辅种 | false 不可辅种
|
||||
*/
|
||||
private static function reseedCheck(int $k, array $torrent, array $infohash_Dir, string $downloadDir, string $_url): bool
|
||||
private static function reseedCheck(string $k, array $torrent, array $infohash_Dir, string $downloadDir, string $_url): bool
|
||||
{
|
||||
self::checkPid() or die('检测到当前任务被外部主动停止,进程退出!' . PHP_EOL);
|
||||
$sid = $torrent['sid'];
|
||||
|
|
|
@ -50,7 +50,7 @@ class MoveTorrent extends AutoReseed
|
|||
protected static function getCliInput()
|
||||
{
|
||||
global $argv;
|
||||
$cron_name = isset($argv[1]) ? $argv[1] : null;
|
||||
$cron_name = $argv[1] ?? null;
|
||||
is_null($cron_name) and die('缺少命令行参数。');
|
||||
self::$conf = domainMove::parser($cron_name);
|
||||
// 用户选择的下载器
|
||||
|
@ -60,6 +60,8 @@ class MoveTorrent extends AutoReseed
|
|||
|
||||
/**
|
||||
* 转移,总入口
|
||||
* @return void
|
||||
* @throws ClientException
|
||||
*/
|
||||
public static function call()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user