formatting code;bugfixes;bumped version

This commit is contained in:
huangjx
2022-04-17 08:30:58 +08:00
parent 2ec569e2b5
commit a44f0c9428
6 changed files with 16 additions and 41 deletions

View File

@@ -17,6 +17,7 @@ class YoutubeHelper
public $file = null;
public $filesize = null;
protected $pid = 0;
private static $instance = null;
public function __construct()
{
$this->dbconn = new DbHelper();
@@ -26,7 +27,12 @@ class YoutubeHelper
public static function create()
{
return new static();
if (!self::$instance) {
self::$instance = new static();
}
return self::$instance;
}
public function getFilePath($output)
{