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

Function showMsg

jd_xtg_help.js:113–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 $.done();
112 });
113async function showMsg() {
114 let nowTime = new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000;
115 if (nowTime > new Date(activeEndTime).getTime()) {
116 $.msg($.name, 'xtg', `请删除或禁用此脚本\n咱江湖再见`);
117 if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `请删除此脚本\n咱江湖再见`)
118 } else {
119 if ($.beanCount) {
120 $.msg($.name, ``, `京东账号${$.index} ${$.nickName || $.UserName}\n星推官活动获得:${$.beanCount}京豆`);
121 allMsg += `京东账号${$.index} ${$.nickName || $.UserName}\n星推官活动获得:${$.beanCount}京豆\n`;
122 }
123 }
124}
125async function JD_XTG(flag = false) {
126 var skuCount = 15, meetingCount = 15;
127 await getHomePage();

Callers

nothing calls this directly

Calls 2

msgMethod · 0.45
isNodeMethod · 0.45

Tested by

no test coverage detected