修改transmission首字母小写

This commit is contained in:
iyuu.cn 2020-02-15 16:04:40 +08:00
parent 33ff8a991a
commit 0f1605ffca
3 changed files with 20 additions and 64 deletions

View File

@ -1,7 +1,5 @@
<?php <?php
/**
* IYUUAutoReseed自动辅种
*/
namespace IYUU; namespace IYUU;
use Curl\Curl; use Curl\Curl;
@ -15,52 +13,25 @@ use IYUU\Library\Table;
*/ */
class AutoReseed class AutoReseed
{ {
/** // 版本号
* 版本号
* @var string
*/
const VER = '1.0.0'; const VER = '1.0.0';
/** // RPC连接
* RPC连接池
* @var array
*/
public static $links = array(); public static $links = array();
/** // 客户端配置
* 客户端配置
* @var array
*/
public static $clients = array(); public static $clients = array();
/** // 站点列表
* 站点列表
*/
public static $sites = array(); public static $sites = array();
/** // 不辅种的站点 'ourbits','hdchina'
* 不辅种的站点 'ourbits','hdchina'
* @var array
*/
public static $noReseed = array(); public static $noReseed = array();
/** // 不转移的站点 'hdarea','hdbd'
* 不转移的站点 'hdarea','hdbd'
* @var array
*/
public static $noMove = array('hdarea'); public static $noMove = array('hdarea');
/** // cookie检查
* cookie检查
* @var array
*/
public static $cookieCheck = array('hdchina','hdcity'); public static $cookieCheck = array('hdchina','hdcity');
/** // 缓存路径
* 缓存路径
* @var string
*/
public static $cacheDir = TORRENT_PATH.'cache'.DS; public static $cacheDir = TORRENT_PATH.'cache'.DS;
public static $cacheHash = TORRENT_PATH.'cachehash'.DS; public static $cacheHash = TORRENT_PATH.'cachehash'.DS;
public static $cacheMove = TORRENT_PATH.'cachemove'.DS; public static $cacheMove = TORRENT_PATH.'cachemove'.DS;
/** // API接口配置
* API接口配置
* @var string
* @var array
*/
public static $apiUrl = 'http://api.iyuu.cn'; public static $apiUrl = 'http://api.iyuu.cn';
public static $endpoints = array( public static $endpoints = array(
'add' => '/api/add', 'add' => '/api/add',
@ -71,24 +42,13 @@ class AutoReseed
'move' => '/api/move', 'move' => '/api/move',
'login' => '/user/login', 'login' => '/user/login',
); );
/** // curl
* curl
*/
public static $curl = null; public static $curl = null;
/** // 退出状态码
* 退出状态码
* @var int
*/
public static $ExitCode = 0; public static $ExitCode = 0;
/** // 客户端转移做种
* 客户端转移做种
* @var array
*/
public static $move = null; public static $move = null;
/** // 微信消息体
* 微信消息体
* @var array
*/
public static $wechatMsg = array( public static $wechatMsg = array(
'hashCount' => 0, // 提交给服务器的hash总数 'hashCount' => 0, // 提交给服务器的hash总数
'sitesCount' => 0, // 可辅种站点总数 'sitesCount' => 0, // 可辅种站点总数
@ -99,10 +59,8 @@ class AutoReseed
'reseedSkip' => 0, // 跳过因未设置passkey而跳过 'reseedSkip' => 0, // 跳过因未设置passkey而跳过
'reseedPass' => 0, // 忽略:因上次成功添加、存在缓存,而跳过 'reseedPass' => 0, // 忽略:因上次成功添加、存在缓存,而跳过
); );
/**
* 初始化 // 初始化
* @return void
*/
public static function init() public static function init()
{ {
global $configALL; global $configALL;
@ -177,8 +135,6 @@ class AutoReseed
} }
/** /**
* 连接远端RPC服务器 * 连接远端RPC服务器
*
* @param string
* @return bool * @return bool
*/ */
public static function links() public static function links()

View File

@ -26,7 +26,7 @@
* PHP Class support (PHP 5) (PHP 4 might work, untested) * PHP Class support (PHP 5) (PHP 4 might work, untested)
*/ */
namespace IYUU\Client\Transmission; namespace IYUU\Client\transmission;
use IYUU\Client\AbstractClient; use IYUU\Client\AbstractClient;
@ -47,7 +47,7 @@ if (version_compare(PHP_VERSION, '5.2.10', '<')) {
* </code> * </code>
* *
*/ */
class Transmission extends AbstractClient class transmission extends AbstractClient
{ {
/** /**
* User agent used in all http communication * User agent used in all http communication
@ -341,7 +341,7 @@ class Transmission extends AbstractClient
{ {
return $this->add_file($torrent_location, $save_path, $extra_options); return $this->add_file($torrent_location, $save_path, $extra_options);
} }
/** /**
* Add a torrent using the raw torrent data * Add a torrent using the raw torrent data
* *

View File

@ -6,7 +6,7 @@
* Time: 2020 * Time: 2020
*/ */
namespace IYUU\Client\Transmission; namespace IYUU\Client\transmission;
/** /**
* This is the type of exception the TransmissionRPC class will throw * This is the type of exception the TransmissionRPC class will throw