MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / checkin

Function checkin

wxapp/zhanma.js:226–257  ·  view source on GitHub ↗

* 签到 *

(timeout = 2 * 1000)

Source from the content-addressed store, hash-verified

224 *
225 */
226function checkin (timeout = 2 * 1000) {
227 return new Promise((resolve) => {
228 let url = {
229 url: `https://zm.t7a.cn/api/checkin.php?safe=${zmnlxq}`,
230 headers: {
231 'Host': 'zm.t7a.cn',
232 'user-agent': 'Mozilla/5.0 (Linux; Android 10; MI 8 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/3235 MMWEBSDK/20220204 Mobile Safari/537.36 MMWEBID/6242 MicroMessenger/8.0.20.2080(0x28001435) Process/appbrand0 WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wx532ecb3bdaaf92f9'
233 },
234 // body: '',
235
236 }
237 $.get(url, async (error, response, data) => {
238 try {
239 result = JSON.parse(data)
240
241 if (result.status == 1) {
242
243 console.log(result.msg)
244
245 } else {
246
247 console.log(result.msg)
248
249 }
250 } catch (e) {
251 console.log(e)
252 } finally {
253 resolve();
254 }
255 }, timeout)
256 })
257}
258
259/**
260 * 小程序添加好友任务

Callers 1

zhanma.jsFile · 0.85

Calls 2

getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected