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

Function showMsg

jd_xtg.js:165–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 $.done();
164 });
165async function showMsg() {
166 let nowTime = new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000;
167 if (nowTime > new Date(activeEndTime).getTime()) {
168 $.msg($.name, 'xtg', `请删除或禁用此脚本\n咱江湖再见`);
169 if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `请删除此脚本\n咱江湖再见`)
170 } else {
171 if ($.beanCount) {
172 $.msg($.name, ``, `京东账号${$.index} ${$.nickName || $.UserName}\n星推官活动获得:${$.beanCount}京豆`);
173 allMsg += `京东账号${$.index} ${$.nickName || $.UserName}\n星推官活动获得:${$.beanCount}京豆\n`;
174 }
175 }
176}
177async function JD_XTG(flag = false) {
178 var skuCount = 15, meetingCount = 15;
179 await getHomePage();

Callers 1

jd_xtg.jsFile · 0.70

Calls 2

msgMethod · 0.45
isNodeMethod · 0.45

Tested by

no test coverage detected