MCPcopy Index your code
hub / github.com/Moli-X/Resources / showmsg

Function showmsg

Script/Hzh.js:120–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120function showmsg() {
121 if ($.data.signResult == true) {
122 const respContent = $.data;
123 const awardMap = respContent.awardMap;
124 let awardNames = '';
125 if (awardMap && awardMap.award && Array.isArray(awardMap.award)) {
126 awardNames = awardMap.award.map(item => item.awardName).join('、');
127 }
128 const message = `获得 ${respContent.point} 积分${awardNames ? `、${awardNames}` : ''}!`;
129 $.notify("华住会", "签到成功🎉", message);
130 } else {
131 $.notify("华住会", "今日已签到🎉", ``);
132 }
133}
134
135function MYERR() {
136 class ParseError extends Error {

Callers 1

Hzh.jsFile · 0.85

Calls 2

joinMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…