MCPcopy Create free account
hub / github.com/chavyleung/scripts / sign

Function sign

zaker/zaker.js:69–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69function sign() {
70 const url = { url: URL, headers: JSON.parse(KEY) }
71 zaker.get(url, (error, response, data) => {
72 zaker.log(`${appName}, data: ${data}`)
73 const title = `${appName}`
74 let subTitle = ''
75 let detail = ''
76 const result = JSON.parse(data)
77 if (result.stat == 1) {
78 subTitle = `签到结果: 成功`
79 detail = `签到奖励: ${result.data.tips}, 总签到天数: ${result.data.total_day_count}天`
80 } else {
81 subTitle = `签到结果: 未知`
82 detail = `说明: ${result.msg}`
83 }
84 zaker.msg(title, subTitle, detail)
85 zaker.done()
86 })
87}
88
89function init() {
90 isSurge = () => {

Callers 1

zaker.jsFile · 0.70

Calls 4

getMethod · 0.45
logMethod · 0.45
msgMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected