mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-03-22 11:18:59 +00:00
1
This commit is contained in:
parent
279da4b97d
commit
b9622b2274
@ -674,13 +674,12 @@ async function showMsg() {
|
||||
ReturnMessage += `【账号信息】`;
|
||||
if ($.isPlusVip) {
|
||||
ReturnMessage += `Plus会员`;
|
||||
if ($.PlustotalScore)
|
||||
ReturnMessage += `(${$.PlustotalScore}分)`
|
||||
} else {
|
||||
ReturnMessage += `普通会员`;
|
||||
}
|
||||
if ($.PlustotalScore)
|
||||
ReturnMessage += `(${$.PlustotalScore}分)`
|
||||
}
|
||||
|
||||
ReturnMessage += `,京享值${$.JingXiang}\n`;
|
||||
}else{
|
||||
ReturnMessageTitle+= `\n`;
|
||||
@ -1274,10 +1273,10 @@ function getJingBeanBalanceDetail(page) {
|
||||
function jingBeanDetail() {
|
||||
return new Promise(async resolve => {
|
||||
setTimeout(async () => {
|
||||
var strsign ="";
|
||||
if (epsignurl){
|
||||
var strsign = "";
|
||||
if (epsignurl) {
|
||||
strsign = await getepsign('jingBeanDetail', { "pageSize": "20", "page": "1" });
|
||||
strsign=strsign.body;
|
||||
strsign = strsign.body;
|
||||
}
|
||||
else
|
||||
strsign = await getSignfromNolan('jingBeanDetail', { "pageSize": "20", "page": "1" });
|
||||
@ -1303,7 +1302,7 @@ function jingBeanDetail() {
|
||||
if (data?.others?.jingBeanExpiringInfo?.detailList) {
|
||||
const { detailList = [] } = data?.others?.jingBeanExpiringInfo;
|
||||
detailList.map(item => {
|
||||
strGuoqi+=`【${(item['eventMassage']).replace("即将过期京豆","").replace("年","-").replace("月","-").replace("日","")}】过期${item['amount']}豆\n`;
|
||||
strGuoqi += `【${(item['eventMassage']).replace("即将过期京豆", "").replace("年", "-").replace("月", "-").replace("日", "")}】过期${item['amount']}豆\n`;
|
||||
})
|
||||
}
|
||||
} else {
|
||||
@ -1311,14 +1310,17 @@ function jingBeanDetail() {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (epsignurl)
|
||||
$.logErr(e, resp)
|
||||
else
|
||||
console.log("因为没有指定带ep的Sign,获取过期豆子信息次数多了就会失败.")
|
||||
} finally {
|
||||
resolve(data);
|
||||
}
|
||||
})
|
||||
}, 0 * 1000);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function getepsign(n, o, t = "sign") {
|
||||
let e = {
|
||||
@ -1569,7 +1571,8 @@ function getCoupon() {
|
||||
|
||||
var decquota=parseFloat(useable[i].quota).toFixed(2);
|
||||
var decdisc= parseFloat(useable[i].discount).toFixed(2);
|
||||
|
||||
if (useable[i].quota>useable[i].discount+5 && useable[i].discount<2)
|
||||
continue
|
||||
$.message += `【全品类券】满${decquota}减${decdisc}元`;
|
||||
|
||||
if (useable[i].endTime < $.todayEndTime) {
|
||||
@ -2014,8 +2017,6 @@ function GetDateTime(date) {
|
||||
}
|
||||
|
||||
async function queryScores() {
|
||||
//if (!$.isPlusVip)
|
||||
// return
|
||||
let res = ''
|
||||
let url = {
|
||||
url: `https://rsp.jd.com/windControl/queryScore/v1?lt=m&an=plus.mobile&stamp=${Date.now()}`,
|
||||
|
||||
24
jd_dplh0618.js
Normal file
24
jd_dplh0618.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user