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

Function signapp

everphoto/everphoto.js:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16.finally(() => chavy.done())
17
18function signapp() {
19 return new Promise((resolve, reject) => {
20 const url = { url: VAL_signurl, headers: JSON.parse(VAL_signheader) }
21 chavy.post(url, (error, response, data) => {
22 try {
23 signinfo.signapp = JSON.parse(data)
24 resolve()
25 } catch (e) {
26 chavy.msg(cookieName, `签到结果: 失败`, `说明: ${e}`)
27 chavy.log(`❌ ${cookieName} sign - 签到失败: ${e}`)
28 chavy.log(`❌ ${cookieName} sign - response: ${JSON.stringify(response)}`)
29 resolve()
30 }
31 })
32 })
33}
34
35function showmsg() {
36 let subTitle, detail

Callers 1

everphoto.jsFile · 0.70

Calls 3

postMethod · 0.45
msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…