mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-01 18:06:41 +08:00
Compare commits
7 Commits
da5e1af343
...
9c12136fb2
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c12136fb2 | |||
| 067b29be3c | |||
| a6b5887a4e | |||
| 4f0c71d191 | |||
| 7b3215b791 | |||
| 7a3dc0e491 | |||
| f90729bd9f |
+7
-6
@@ -826,7 +826,7 @@ async function showMsg() {
|
|||||||
let dwappex = await dwappexpire();
|
let dwappex = await dwappexpire();
|
||||||
ReturnMessage += `【话费积分】${dwscore}`;
|
ReturnMessage += `【话费积分】${dwscore}`;
|
||||||
if (dwappex) {
|
if (dwappex) {
|
||||||
ReturnMessage += `(最近已过期:${dwappex})`;
|
ReturnMessage += `(近7日将过期${dwappex})`;
|
||||||
}
|
}
|
||||||
ReturnMessage += `\n`;
|
ReturnMessage += `\n`;
|
||||||
}
|
}
|
||||||
@@ -1508,9 +1508,9 @@ function redPacket() {
|
|||||||
|
|
||||||
if ($.jsRed > 0) {
|
if ($.jsRed > 0) {
|
||||||
if ($.jsRedExpire > 0)
|
if ($.jsRedExpire > 0)
|
||||||
$.message += `【京喜特价】${$.jsRed}(将过期${$.jsRedExpire.toFixed(2)})元(原极速版) \n`;
|
$.message += `【京喜特价】${$.jsRed}(将过期${$.jsRedExpire.toFixed(2)})元 \n`;
|
||||||
else
|
else
|
||||||
$.message += `【京喜特价】${$.jsRed}元(原极速版) \n`;
|
$.message += `【京喜特价】${$.jsRed}元 \n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.jdRed > 0) {
|
if ($.jdRed > 0) {
|
||||||
@@ -2136,7 +2136,7 @@ function dwappinfo() {
|
|||||||
}
|
}
|
||||||
function dwappexpire() {
|
function dwappexpire() {
|
||||||
let opt = {
|
let opt = {
|
||||||
url: `https://dwapp.jd.com/user/scoreDetail?pageNo=1&pageSize=10&scoreType=16&t=1637`,
|
url: `https://api.m.jd.com/api?functionId=DATAWALLET_USER_QUERY_EXPIRED_SCORE`,
|
||||||
headers: {
|
headers: {
|
||||||
|
|
||||||
'User-Agent': $.UA,
|
'User-Agent': $.UA,
|
||||||
@@ -2148,11 +2148,12 @@ function dwappexpire() {
|
|||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
console.log(` API请求失败,请检查网路重试`)
|
console.log(`dwappexpire 请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
data = JSON.parse(data)
|
data = JSON.parse(data)
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
data = data.data.userOperateList.length !== 0 ? moment(new Date(data.data.userOperateList[0].time)).format('M/D') : '';
|
data = data.data.expireNum;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//console.log(data.msg);
|
//console.log(data.msg);
|
||||||
data = '';
|
data = '';
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+2
-4
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user