fix jd_dreamFactory.js

This commit is contained in:
lxk0301
2021-04-10 20:28:49 +08:00
parent fa73960056
commit a1cd636443

View File

@@ -105,7 +105,7 @@ if ($.isNode()) {
continue continue
} }
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
await joinLeaderTuan();//参团
if ((cookiesArr && cookiesArr.length >= ($.tuanNum || 5)) && $.canHelp) { if ((cookiesArr && cookiesArr.length >= ($.tuanNum || 5)) && $.canHelp) {
console.log(`\n账号${$.UserName} 内部相互进团\n`); console.log(`\n账号${$.UserName} 内部相互进团\n`);
for (let item of $.tuanIds) { for (let item of $.tuanIds) {
@@ -115,6 +115,7 @@ if ($.isNode()) {
await $.wait(1000); await $.wait(1000);
} }
} }
if ($.canHelp) await joinLeaderTuan();//参团
} }
} }
if ($.isNode() && allMessage) { if ($.isNode() && allMessage) {
@@ -1589,7 +1590,7 @@ function decrypt(time, stk, type, url) {
$.token = `tk01wcdf61cb3a8nYUtHcmhSUFFCfddDPRvKvYaMjHkxo6Aj7dhzO+GXGFa9nPXfcgT+mULoF1b1YIS1ghvSlbwhE0Xc`; $.token = `tk01wcdf61cb3a8nYUtHcmhSUFFCfddDPRvKvYaMjHkxo6Aj7dhzO+GXGFa9nPXfcgT+mULoF1b1YIS1ghvSlbwhE0Xc`;
$.fingerprint = 5287160221454703; $.fingerprint = 5287160221454703;
const str = `${$.token}${$.fingerprint}${timestamp}${$.appId}${random}`; const str = `${$.token}${$.fingerprint}${timestamp}${$.appId}${random}`;
hash1 = $.CryptoJS.SHA512(str, token).toString($.CryptoJS.enc.Hex); hash1 = $.CryptoJS.SHA512(str, $.token).toString($.CryptoJS.enc.Hex);
} }
let st = ''; let st = '';
stk.split(',').map((item, index) => { stk.split(',').map((item, index) => {