MCPcopy Create free account
hub / github.com/Semporia/Scripts / showMsg

Function showMsg

jd_jdzz.js:115–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115function showMsg() {
116 return new Promise(async resolve => {
117 message += `本次获得${parseInt($.totalBeanNum) - $.nowBean}京豆,${parseInt($.totalNum) - $.nowNum}金币\n`
118 message += `累计获得${$.totalBeanNum}京豆,${$.totalNum}金币\n可兑换${$.totalNum / 10000}元无门槛红包\n兑换入口:京东赚赚微信小程序->赚好礼->金币提现`
119 if (parseInt($.totalBeanNum) - $.nowBean > 0) {
120 //IOS运行获得京豆大于0通知
121 $.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
122 } else {
123 $.log(message)
124 }
125 // 云端大于10元无门槛红包时进行通知推送
126 // if ($.isNode() && $.totalNum >= 1000000) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index} ${$.nickName}\n当前金币:${$.totalNum}个\n可兑换无门槛红包:${parseInt($.totalNum) / 10000}元\n`,)
127 allMessage += `京东账号${$.index} ${$.nickName}\n当前金币:${$.totalNum}个\n可兑换无门槛红包:${parseInt($.totalNum) / 10000}元\n兑换入口:京东赚赚微信小程序->赚好礼->金币提现${$.index !== cookiesArr.length ? '\n\n' : ''}`;
128 resolve();
129 })
130}
131
132function getUserInfo() {
133 return new Promise(resolve => {

Callers 1

jdWishFunction · 0.70

Calls 2

msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected