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

Function signapp

csdn/csdn.js:56–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56function signapp() {
57 return new Promise((resolve, reject) => {
58 const url = { url: VAL_signurl, body: '{}', headers: JSON.parse(VAL_signheader) }
59 chavy.post(url, (error, response, data) => {
60 try {
61 signinfo.signapp = JSON.parse(data)
62 resolve()
63 } catch (e) {
64 chavy.msg(cookieName, `签到结果: 失败`, `说明: ${e}`)
65 chavy.log(`❌ ${cookieName} signapp - 签到失败: ${e}`)
66 chavy.log(`❌ ${cookieName} signapp - response: ${JSON.stringify(response)}`)
67 resolve()
68 }
69 })
70 })
71}
72
73function getlucky() {
74 return new Promise((resolve, reject) => {

Callers 1

csdn.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…