fix:composer update ledccn/bittorrentclient

This commit is contained in:
david 2021-03-21 14:32:43 +08:00
parent 1fc6cb223a
commit 8c0e3e4d0b
3 changed files with 9 additions and 5 deletions

View File

@ -110,7 +110,7 @@ class Rpc
$result = $client->status();
print self::$clients['type'].''.self::$clients['host']." Rpc连接 [{$result}]".PHP_EOL;
} catch (\Exception $e) {
die('[连接错误] '. self::$clients['host'] . ' ' . $e->getMessage() . PHP_EOL);
die(__FILE__ . ' LINE:' . __LINE__ . '[连接错误] '. self::$clients['host'] . ' ' . $e->getMessage() . PHP_EOL);
}
}
return true;

View File

@ -129,12 +129,12 @@
"source": {
"type": "git",
"url": "https://github.com/ledccn/BittorrentClient.git",
"reference": "c25d6248a4c9dbb2f6b23e2d0416bf1d95be440f"
"reference": "7162332e4219c0a6a6d0c5940e50be27b3bde456"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ledccn/BittorrentClient/zipball/c25d6248a4c9dbb2f6b23e2d0416bf1d95be440f",
"reference": "c25d6248a4c9dbb2f6b23e2d0416bf1d95be440f",
"url": "https://api.github.com/repos/ledccn/BittorrentClient/zipball/7162332e4219c0a6a6d0c5940e50be27b3bde456",
"reference": "7162332e4219c0a6a6d0c5940e50be27b3bde456",
"shasum": "",
"mirrors": [
{
@ -150,7 +150,7 @@
"ext-mbstring": "*",
"php": "^5.6 | ^7.0"
},
"time": "2021-03-20T23:39:22+00:00",
"time": "2021-03-21T00:11:04+00:00",
"type": "library",
"installation-source": "source",
"autoload": {

View File

@ -1008,6 +1008,10 @@ class transmission extends AbstractClient
$name = $result['arguments'][$_key]['name'];
echo "名字:" .$name . PHP_EOL;
echo "********RPC添加下载任务成功 [" .$result['result']. "] (id=" .$id. ")".PHP_EOL.PHP_EOL;
$rs['data'] = [
'id' => $id,
'name' => $name
];
} else {
$rs['result'] = empty($result['result']) ? '未知错误,请稍后重试!' : $result['result'];
echo "-----RPC添加种子任务失败 [".$rs['result']."]" . PHP_EOL.PHP_EOL;