TA的每日心情 | 开心 2024-7-30 00:00 |
---|
签到天数: 122 天 [LV.7]常住居民III
专家
- 积分
- 542
|
发表于
2021-9-18 16:50:44
|
显示全部楼层
黑猴子最新版
https://pan.baidu.com/s/1zoXTGXF5twZiK_vK55wL3Q
shareId=zoXTGXF5twZiK_vK55wL3Q,sharePwd=zbvc
再加一段代码取shareRandsk
obj.baiduShareVerify = function (shareId, sharePwd, callback) {
var baiduId = randString(32).toUpperCase() + ":FG=1", //"403F8F9CE74DC433276B0614D7F3A134:FG=1", //getCookie("BAIDUID")
logid = window.btoa(baiduId); //window.yunData.MYBDSTOKEN
var url = "https://pan.baidu.com/share/verify";
url += "?surl=" + shareId + "&t=" + (new Date).getTime() + "&channel=chunlei&web=1&app_id=250528&bdstoken=null&logid=" + logid + "&clienttype=0";
var data = {
pwd: sharePwd,
vcode: "",
vcode_str: ""
}
var headers = {
Referer: "https://pan.baidu.com/share/init?surl=" + shareId + "&pwd=" + sharePwd
}
http.ajax({
type: "post",
url: url,
data: data,
headers: headers,
success: function (response) {
//console.log("百度校验 response", response);
if (response instanceof Object) {
if (response.errno == 0) {
//console.log("百度校验 成功");
var verifyResponse = response;
obj.getShareList_mobile(shareId, verifyResponse.randsk, function (response) {
if (response.errno == 0) {
response.share_name = response.list[0].server_filename + (response.list > 1 ? "等" : "");
callback && callback(response);
}
else {
console.error("百度校验 getShareList_mobile 失败,失败原因:", response);
callback && callback(verifyResponse);
}
});
}
else {
console.error("百度校验 失败,失败原因:", response);
callback && callback("");
}
}
else {
callback && callback("");
}
},
error: function (err) {
callback && callback("");
}
});
};
randString(32)是取32位随机字符 |
|