1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-01 18:06:41 +08:00

Compare commits

..

7 Commits

Author SHA1 Message Date
dylan 9c12136fb2 1 2024-01-01 00:20:52 +08:00
dylan 067b29be3c 1 2024-01-01 00:18:11 +08:00
dylan a6b5887a4e 1 2023-12-31 23:41:00 +08:00
dylan 4f0c71d191 1 2023-12-31 22:11:23 +08:00
dylan 7b3215b791 1 2023-12-31 21:35:53 +08:00
dylan 7a3dc0e491 1 2023-12-31 21:00:14 +08:00
dylan f90729bd9f 1 2023-12-31 20:49:34 +08:00
3 changed files with 21 additions and 10 deletions
+7 -6
View File
@@ -826,7 +826,7 @@ async function showMsg() {
let dwappex = await dwappexpire();
ReturnMessage += `【话费积分】${dwscore}`;
if (dwappex) {
ReturnMessage += `(最近已过期:${dwappex})`;
ReturnMessage += `(近7日将过期${dwappex})`;
}
ReturnMessage += `\n`;
}
@@ -1508,9 +1508,9 @@ function redPacket() {
if ($.jsRed > 0) {
if ($.jsRedExpire > 0)
$.message += `【京喜特价】${$.jsRed}(将过期${$.jsRedExpire.toFixed(2)})元(原极速版) \n`;
$.message += `【京喜特价】${$.jsRed}(将过期${$.jsRedExpire.toFixed(2)})元 \n`;
else
$.message += `【京喜特价】${$.jsRed}(原极速版) \n`;
$.message += `【京喜特价】${$.jsRed}\n`;
}
if ($.jdRed > 0) {
@@ -2136,7 +2136,7 @@ function dwappinfo() {
}
function dwappexpire() {
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: {
'User-Agent': $.UA,
@@ -2148,11 +2148,12 @@ function dwappexpire() {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(` API请求失败,请检查网路重试`)
console.log(`dwappexpire 请求失败,请检查网路重试`)
} else {
data = JSON.parse(data)
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 {
//console.log(data.msg);
data = '';
+12
View File
File diff suppressed because one or more lines are too long
+2 -4
View File
File diff suppressed because one or more lines are too long