我用官网的api接口 既然不能实现下载
public function dwon(){
$url = $this->BT_PANEL.$this->config("download");
//var_dump($url);exit;
$siteName=$_GET["name"];
$p_data = $this->GetKeyData();
//var_dump($p_data);exit;
$p_data['siteName'] = $siteName;
$result = $this->HttpPostCookie($url,$p_data);
var_dump($result);exit;
$data = json_decode($result,true);
readfile("$data");
}
}
用这个方法 既然出现不能访问
知道怎么实现的麻烦说一下 谢谢!
|
|