Skip to content

Commit

Permalink
Update jd_bean_change.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwav committed Oct 15, 2021
1 parent 0b53612 commit 71bf351
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions jd_bean_change.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,39 +413,40 @@ async function showMsg() {
ReturnMessage = `【账号${IndexAll}🆔】${$.nickName || $.UserName}\n`;
}

if ($.levelName || $.JingXiang)
if ($.levelName || $.JingXiang){
ReturnMessage += `【账号信息】`;
if ($.levelName) {
if ($.levelName.length > 2)
$.levelName = $.levelName.substring(0, 2);

if ($.levelName) {
if ($.levelName.length > 2)
$.levelName = $.levelName.substring(0, 2);

if ($.levelName == "注册")
$.levelName = `😊普通`;
if ($.levelName == "注册")
$.levelName = `😊普通`;

if ($.levelName == "钻石")
$.levelName = `💎钻石`;
if ($.levelName == "钻石")
$.levelName = `💎钻石`;

if ($.levelName == "金牌")
$.levelName = `🥇金牌`;
if ($.levelName == "金牌")
$.levelName = `🥇金牌`;

if ($.levelName == "银牌")
$.levelName = `🥈银牌`;
if ($.levelName == "银牌")
$.levelName = `🥈银牌`;

if ($.levelName == "铜牌")
$.levelName = `🥉铜牌`;
if ($.levelName == "铜牌")
$.levelName = `🥉铜牌`;

if ($.isPlusVip == 1)
ReturnMessage += `${$.levelName}Plus`;
else
ReturnMessage += `${$.levelName}会员`;
}
if ($.isPlusVip == 1)
ReturnMessage += `${$.levelName}Plus`;
else
ReturnMessage += `${$.levelName}会员`;
}

if ($.JingXiang){
if ($.levelName) {
ReturnMessage +=",";
if ($.JingXiang){
if ($.levelName) {
ReturnMessage +=",";
}
ReturnMessage += `${$.JingXiang}`;
}
ReturnMessage += `${$.JingXiang}`;
ReturnMessage +=`\n`;
}
if (llShowMonth) {
ReturnMessageMonth = ReturnMessage;
Expand All @@ -472,7 +473,7 @@ async function showMsg() {

}

ReturnMessage += `\n【今日京豆】收${$.todayIncomeBean}豆`;
ReturnMessage += `【今日京豆】收${$.todayIncomeBean}豆`;

if ($.todayOutcomeBean != 0) {
ReturnMessage += `,支${$.todayOutcomeBean}豆`;
Expand All @@ -485,7 +486,11 @@ async function showMsg() {
ReturnMessage += `,支${$.expenseBean}豆`;
}
ReturnMessage += `\n`;
ReturnMessage += `【当前京豆】${$.beanCount}豆(≈${($.beanCount / 100).toFixed(2)}元)\n`;
if ($.levelName || $.JingXiang){
ReturnMessage += `【当前京豆】${$.beanCount}豆(≈${($.beanCount / 100).toFixed(2)}元)\n`;
} else {
ReturnMessage += `【当前京豆】获取失败,接口返回空数据\n`;
}

if (typeof $.JDEggcnt !== "undefined") {
if ($.JDEggcnt == 0) {
Expand Down

0 comments on commit 71bf351

Please sign in to comment.