|
|
|
@ -1,10 +1,12 @@ |
|
|
|
|
<?php |
|
|
|
|
namespace IYUU; |
|
|
|
|
|
|
|
|
|
use Curl\Curl; |
|
|
|
|
use IYUU\Client\AbstractClient; |
|
|
|
|
use IYUU\Library\IFile; |
|
|
|
|
use IYUU\Library\Oauth; |
|
|
|
|
use IYUU\Library\Table; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* IYUUAutoReseed自动辅种类 |
|
|
|
|
*/ |
|
|
|
@ -420,7 +422,7 @@ class AutoReseed |
|
|
|
|
if ($lastTime) { |
|
|
|
|
$interval = time() - $lastTime; // 间隔时间 |
|
|
|
|
if ($interval < $limitRule['sleep']) { |
|
|
|
|
$t = $limitRule['sleep'] - $interval + mt_rand(1,5); |
|
|
|
|
$t = $limitRule['sleep'] - $interval + mt_rand(1, 5); |
|
|
|
|
do { |
|
|
|
|
echo microtime(true)." 为账号安全,辅种进程休眠 {$t} 秒后继续...".PHP_EOL; |
|
|
|
|
sleep(1); |
|
|
|
@ -762,8 +764,7 @@ class AutoReseed |
|
|
|
|
$path_selector = isset($configALL['default']['move']['path_selector']) && !empty($configALL['default']['move']['path_selector']) ? $configALL['default']['move']['path_selector'] : null; |
|
|
|
|
if (\is_null($path_filter) && \is_null($path_selector)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
elseif (\is_null($path_filter)) { |
|
|
|
|
} elseif (\is_null($path_filter)) { |
|
|
|
|
//选择器 |
|
|
|
|
if (\is_array($path_selector)) { |
|
|
|
|
foreach ($path_selector as $pathName) { |
|
|
|
@ -774,8 +775,7 @@ class AutoReseed |
|
|
|
|
echo '已跳过!转移选择器未匹配到:'.$path.PHP_EOL; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
elseif (\is_null($path_selector)) { |
|
|
|
|
} elseif (\is_null($path_selector)) { |
|
|
|
|
//过滤器 |
|
|
|
|
if (\is_array($path_filter)) { |
|
|
|
|
foreach ($path_filter as $pathName) { |
|
|
|
@ -839,7 +839,7 @@ class AutoReseed |
|
|
|
|
} |
|
|
|
|
// 通用操作:拼接 |
|
|
|
|
if (isset($configALL[$site]['url_join']) && $configALL[$site]['url_join']) { |
|
|
|
|
$url = $url.(strpos($url, '?') === false ? '?' : '&').implode('&',$configALL[$site]['url_join']); |
|
|
|
|
$url = $url.(strpos($url, '?') === false ? '?' : '&').implode('&', $configALL[$site]['url_join']); |
|
|
|
|
} |
|
|
|
|
return $url; |
|
|
|
|
} |
|
|
|
|