
天翼网盘解析源码
天翼网盘分享链接解析源码
UC网盘分享解析源码
部分源代码如下
<?php
header('Content-type: application/json');
$fileId = $_GET['fileid'];
$curl = curl_init();
$ip = "登录账号的IP";
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://cloud.189.cn/api/open/file/getFileDownloadUrl.action?noCache='.generateRandomString().'&fileId='.$fileId,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'CLIENT-IP:'.$ip,
'X-FORWARDED-FOR:'.$ip,
'authority: cloud.189.cn',
'browser-id: f87227fbe12d33738586596761bea9aa',
'sign-type: 1',
'Referer: https://cloud.189.cn/web/main/file/folder/924371154317278688',
'Cookie: xxx',//需要保持跟登录账号IP一致的cookie
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'
),
));
$response = curl_exec($curl);
curl_close($curl);
// echo $response;
preg_match_all("/<fileDownloadUrl>(.*?)<\/fileDownloadUrl>/",$response,$arr);
// print_r($arr);
if(isset($arr) && is_array($arr) && !empty($arr)){
$result = array(
'code'=>200,
'msg'=>'ok',
'url'=>urldecode(html_entity_decode($arr[1][0])),
'fileid'=>$fileId,
'callback'=>'解析成功!'
);
}else{
$result = array(
'code'=>0,
'msg'=>'error',
'callback'=>'解析失败!可能是cookie失效了!'
);
}

不错不错,很详细!
教程不错!
https://cccimg.com/view.php/60d24926ca7a812d3962afc7b73f284b.jpg
这个链接是付款后的截图,带有北京时间
从新下载即可
dfsfsdtryrt
测试订单撒旦撒神丢
输入方式地方
发顺丰大苏打