修复RPC添加下载任务时,ID获取错误的bug

This commit is contained in:
iyuu.cn
2020-01-13 00:32:14 +08:00
parent 2ccec4bc12
commit d7485be259
3 changed files with 36 additions and 13 deletions

View File

@@ -348,7 +348,6 @@ class iyuuAutoReseed
// 发起请求
echo "正在提交辅种信息…… \n";
$res = $curl->post(self::$apiUrl . self::$endpoints['reseed'], $hashArray);
$resArray = json_decode($res->response, true);
// 写日志
if(true){
@@ -441,7 +440,6 @@ class iyuuAutoReseed
$_url = 'https://' .$sites[$sitesID]['base_url']. '/' . $_url;
print "种子下载页:".$_url. "\n";
$url = download($_url, $cookie, $userAgent);
#$torrentArray = Bencode::decode($url);
break;
case 'hdcity':
if ( empty($configALL[$sites[$sitesID]['site']]['cookie']) ) {
@@ -453,6 +451,7 @@ class iyuuAutoReseed
$userAgent = $configALL['default']['userAgent'];
print "种子:".$_url. "\n";
if ( isset($configALL[$sites[$sitesID]['site']]['cuhash']) ) {
// 已获取cuhash
# code...
}else {
// 获取cuhash