MCPcopy
hub / github.com/chavyleung/scripts / showmsg

Function showmsg

everphoto/everphoto.js:35–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function showmsg() {
36 let subTitle, detail
37 if (signinfo.signapp.code == 0 && signinfo.signapp.data.checkin_result == true) {
38 const reward = signinfo.signapp.data.reward / 1024 / 1024
39 const total_reward = signinfo.signapp.data.total_reward / 1024 / 1024
40 const tomorrow_reward = signinfo.signapp.data.tomorrow_reward / 1024 / 1024
41 subTitle = '签到结果: 成功'
42 detail = `总共获得: ${total_reward}MB (+${reward}MB), 明天获得: ${tomorrow_reward}MB`
43 } else if (signinfo.signapp.code == 0 && signinfo.signapp.data.checkin_result == false) {
44 const total_reward = signinfo.signapp.data.total_reward / 1024 / 1024
45 const tomorrow_reward = signinfo.signapp.data.tomorrow_reward / 1024 / 1024
46 subTitle = '签到结果: 成功 (重复签到)'
47 detail = `总共获得: ${total_reward}MB, 明天获得: ${tomorrow_reward}MB`
48 } else {
49 subTitle = '签到结果: 失败'
50 detail = `编码: ${signinfo.signapp.code}, 说明: 未知`
51 chavy.log(`❌ ${cookieName} showmsg - 签到失败: ${JSON.stringify(signinfo.signapp)}`)
52 }
53 chavy.msg(cookieName, subTitle, detail)
54}
55
56function init() {
57 isSurge = () => {

Callers 1

everphoto.jsFile · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…