增加run方法传入参数

This commit is contained in:
iyuu.cn
2019-12-25 23:56:12 +08:00
parent 9179fb52c3
commit ce0ee0de19
35 changed files with 73 additions and 73 deletions

View File

@@ -95,11 +95,11 @@ class Hdsky implements decodeBase
* @param string
* @return array
*/
public static function run()
public static function run($url = 'torrents.php')
{
self::init();
Rpc::init(self::SITE, self::METHOD);
$html = self::get();
$html = self::get($url);
if ( $html === null ) {
exit(1);
}