mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
Update jd_bean_change.js
This commit is contained in:
parent
32d3a391ff
commit
26a1ae9fa7
@ -1652,7 +1652,7 @@ function redPacket() {
|
|||||||
if (vo['endTime'] === t) {
|
if (vo['endTime'] === t) {
|
||||||
$.jxRedExpire += parseFloat(vo.balance)
|
$.jxRedExpire += parseFloat(vo.balance)
|
||||||
}
|
}
|
||||||
} else if (vo.activityName.includes("极速版")) {
|
} else if (vo.activityName.includes("极速版") || vo.activityName.includes("京东特价")) {
|
||||||
$.jsRed += parseFloat(vo.balance)
|
$.jsRed += parseFloat(vo.balance)
|
||||||
if (vo['endTime'] === t) {
|
if (vo['endTime'] === t) {
|
||||||
$.jsRedExpire += parseFloat(vo.balance)
|
$.jsRedExpire += parseFloat(vo.balance)
|
||||||
@ -2600,9 +2600,9 @@ function GetJoyRuninginfo() {
|
|||||||
"Content-Type": "application/x-www-form-urlencoded",
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
"Cookie": cookie,
|
"Cookie": cookie,
|
||||||
"Host": "api.m.jd.com",
|
"Host": "api.m.jd.com",
|
||||||
"Origin": "https://joypark.jd.com",
|
"Origin": "https://h5platform.jd.com",
|
||||||
"Referer": "https://joypark.jd.com/",
|
"Referer": "https://h5platform.jd.com/",
|
||||||
"User-Agent": $.UA
|
"User-Agent": `jdpingou;iPhone;4.13.0;14.4.2;${randomString(40)};network/wifi;model/iPhone10,2;appBuild/100609;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/1;hasOCPay/0;supportBestPay/0;session/${Math.random * 98 + 1};pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||||
}
|
}
|
||||||
var DateToday = new Date();
|
var DateToday = new Date();
|
||||||
const body = {
|
const body = {
|
||||||
@ -2611,7 +2611,7 @@ function GetJoyRuninginfo() {
|
|||||||
'joyLinkId':'LsQNxL7iWDlXUs6cFl-AAg'
|
'joyLinkId':'LsQNxL7iWDlXUs6cFl-AAg'
|
||||||
};
|
};
|
||||||
const options = {
|
const options = {
|
||||||
url: `https://api.m.jd.com/?functionId=runningPageHome&body=${encodeURIComponent(JSON.stringify(body))}&t=${DateToday.getTime()}&appid=activities_platform&client=ios&clientVersion=3.8.12`,
|
url: `https://api.m.jd.com/?functionId=runningPageHome&body=${encodeURIComponent(JSON.stringify(body))}&t=${DateToday.getTime()}&appid=activities_platform&client=ios&clientVersion=3.9.2`,
|
||||||
headers,
|
headers,
|
||||||
}
|
}
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
@ -2619,7 +2619,7 @@ function GetJoyRuninginfo() {
|
|||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`GetJoyRuninginfo API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (data) {
|
if (data) {
|
||||||
//console.log(data);
|
//console.log(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user