Files
urldb/demo/pan/BasePan.php
2025-07-12 21:23:23 +08:00

25 lines
625 B
PHP

<?php
namespace netdisk\pan;
abstract class BasePan
{
protected $urlHeader;
protected $code;
protected $url;
protected $isType;
protected $expired_type;
protected $ad_fid;
protected $stoken;
public function __construct($config = [])
{
$this->code = $config['code'] ?? '';
$this->url = $config['url'] ?? '';
$this->isType = $config['isType'] ?? 0;
$this->expired_type = $config['expired_type'] ?? 1;
$this->ad_fid = $config['ad_fid'] ?? '';
$this->stoken = $config['stoken'] ?? '';
}
abstract public function transfer($share_id);
}