mirror of
https://github.com/okyyds/yyds.git
synced 2026-07-13 19:01:17 +08:00
update cfd
This commit is contained in:
@@ -40,7 +40,7 @@ let cookiesArr = [], cookie = '', token = '';
|
|||||||
let UA, UAInfo = {};
|
let UA, UAInfo = {};
|
||||||
let nowTimes;
|
let nowTimes;
|
||||||
const randomCount = $.isNode() ? 20 : 3;
|
const randomCount = $.isNode() ? 20 : 3;
|
||||||
$.appId = 10032;
|
$.appId = "92a36";
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
Object.keys(jdCookieNode).forEach((item) => {
|
Object.keys(jdCookieNode).forEach((item) => {
|
||||||
cookiesArr.push(jdCookieNode[item])
|
cookiesArr.push(jdCookieNode[item])
|
||||||
@@ -1715,7 +1715,7 @@ async function requestAlgo() {
|
|||||||
'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7'
|
'Accept-Language': 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7'
|
||||||
},
|
},
|
||||||
'body': JSON.stringify({
|
'body': JSON.stringify({
|
||||||
"version": "1.0",
|
"version": "3.0",
|
||||||
"fp": $.fingerprint,
|
"fp": $.fingerprint,
|
||||||
"appId": $.appId.toString(),
|
"appId": $.appId.toString(),
|
||||||
"timestamp": Date.now(),
|
"timestamp": Date.now(),
|
||||||
@@ -1778,7 +1778,7 @@ function decrypt(time, stk, type, url) {
|
|||||||
const hash2 = $.CryptoJS.HmacSHA256(st, hash1.toString()).toString($.CryptoJS.enc.Hex);
|
const hash2 = $.CryptoJS.HmacSHA256(st, hash1.toString()).toString($.CryptoJS.enc.Hex);
|
||||||
// console.log(`\nst:${st}`)
|
// console.log(`\nst:${st}`)
|
||||||
// console.log(`h5st:${["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat($.appId.toString()), "".concat(token), "".concat(hash2)].join(";")}\n`)
|
// console.log(`h5st:${["".concat(timestamp.toString()), "".concat(fingerprint.toString()), "".concat($.appId.toString()), "".concat(token), "".concat(hash2)].join(";")}\n`)
|
||||||
return encodeURIComponent(["".concat(timestamp.toString()), "".concat($.fingerprint.toString()), "".concat($.appId.toString()), "".concat($.token), "".concat(hash2)].join(";"))
|
return encodeURIComponent(["".concat(timestamp.toString()), "".concat($.fingerprint.toString()), "".concat($.appId.toString()), "".concat($.token), "".concat(hash2), "".concat("3.0"), "".concat(time)].join(";"))
|
||||||
} else {
|
} else {
|
||||||
return '20210318144213808;8277529360925161;10001;tk01w952a1b73a8nU0luMGtBanZTHCgj0KFVwDa4n5pJ95T/5bxO/m54p4MtgVEwKNev1u/BUjrpWAUMZPW0Kz2RWP8v;86054c036fe3bf0991bd9a9da1a8d44dd130c6508602215e50bb1e385326779d'
|
return '20210318144213808;8277529360925161;10001;tk01w952a1b73a8nU0luMGtBanZTHCgj0KFVwDa4n5pJ95T/5bxO/m54p4MtgVEwKNev1u/BUjrpWAUMZPW0Kz2RWP8v;86054c036fe3bf0991bd9a9da1a8d44dd130c6508602215e50bb1e385326779d'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user