MCPcopy Index your code
hub / github.com/chavyleung/scripts / showmsg

Function showmsg

csdn/csdn.js:135–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135function showmsg() {
136 let subTitle = ''
137 let detail = ''
138 if (signinfo.signapp.code == 200) {
139 if (signinfo.signapp.data.isSigned === false) {
140 subTitle = `签到结果: 成功`
141 detail = `共签: ${signinfo.signapp.data.totalCount}天, 连签: ${signinfo.signapp.data.keepCount}天`
142 } else if (signinfo.signapp.data.isSigned === true) {
143 subTitle = `签到结果: 重复`
144 } else {
145 subTitle = `签到结果: 失败`
146 detail = `编码: ${signinfo.signapp.code}, 说明: ${signinfo.signapp.msg}`
147 }
148 } else {
149 subTitle = `签到结果: 失败`
150 detail = `说明: 详见日志`
151 }
152
153 if (signinfo.lucky && signinfo.lucky.data && signinfo.lucky.data.drawTimes && signinfo.lucky.data.drawTimes > 0) {
154 subTitle += `; 抽奖次数: ${signinfo.lucky.data.drawTimes}`
155 detail += `\n查看抽奖详情\n`
156 for (let i = 0; i < signinfo.luckylist.length; i++) {
157 const can_draw = signinfo.luckylist[i].data.can_draw
158 if (can_draw) detail += `\n抽奖 ${i + 1}: ${signinfo.luckylist[i].data.title}`
159 else detail += `\n抽奖 ${i + 1}: ${signinfo.luckylist[i].data.msg}`
160 }
161 }
162 chavy.msg(cookieName, subTitle, detail)
163}
164
165function init() {
166 isSurge = () => {

Callers 1

csdn.jsFile · 0.70

Calls 1

msgMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…