iyuu.cn 5 years ago
parent 4cf1222b37
commit d015cd56a6
  1. 4
      app/AutoReseed.php
  2. 8
      app/Library/Oauth.php
  3. 6
      config/config.sample.php

@ -77,7 +77,7 @@ class AutoReseed
// 合作站点自动注册鉴权
$is_login = Oauth::login(self::$apiUrl . self::$endpoints['login']);
if(!$is_login){
if (!$is_login) {
echo '合作站点鉴权配置,请查阅:https://www.iyuu.cn/archives/337/' .PHP_EOL;
}
@ -361,7 +361,7 @@ class AutoReseed
//echo '-------因当前' .$siteName. "站点未设置passkey,已跳过!!".PHP_EOL.PHP_EOL;
self::$wechatMsg['reseedSkip']++;
continue;
}else{
} else {
echo "clients_".$k."正在辅种... {$siteName}".PHP_EOL;
}
// cookie检测

@ -48,7 +48,7 @@ class Oauth
$ret = false;
self::$token = self::getSign();
foreach (self::$sites as $name) {
if (is_file(str_replace('{}', $name, self::$SiteLoginCache))){
if (is_file(str_replace('{}', $name, self::$SiteLoginCache))) {
// 存在鉴权缓存
$ret = true;
continue;
@ -69,11 +69,11 @@ class Oauth
$res = $curl->get($apiUrl, $data);
p($res->response);
$rs = json_decode($res->response,true);
if (isset($rs['ret']) && $rs['ret'] == 200 && isset($rs['data']['success']) && $rs['data']['success']){
$rs = json_decode($res->response, true);
if (isset($rs['ret']) && $rs['ret'] == 200 && isset($rs['data']['success']) && $rs['data']['success']) {
self::setSiteLoginCache($name, $rs);
$ret = true;
}else{
} else {
$msg = isset($rs['msg']) && $rs['msg'] ? $rs['msg'] : '远端服务器无响应,请稍后重试!';
$msg = isset($rs['data']['errmsg']) && $rs['data']['errmsg'] ? $rs['data']['errmsg'] : $msg;
echo $msg . PHP_EOL;

@ -58,11 +58,11 @@ return array(
'skip_check' => 0, //转移成功,跳校验:0不跳、1跳校验
'delete_torrent' => 0, //转移成功,删除当前做种:0不删除、1删除
),
// 6.RSS工作模式
// 6.RSS工作模式
'workingMode' => 0,
// 7.监控目录
// 7.监控目录
'watch' => '/volume1/downloads',
// 8.RSS过滤参数配置
// 8.RSS过滤参数配置
'filter' => array(
'size'=>array(
'min' => '1GB',

Loading…
Cancel
Save