MCPcopy
hub / github.com/smallfawn/QLScriptPublic / signIn

Method signIn

daily/chinaMobile.js:43–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 async signIn() {
44 let toDay = $.time("yyyyMMdd");
45 let options = {
46 method: 'POST',
47 url: 'https://wx.10086.cn/qwhdhub/api/mark/mark31/domark',
48 headers: {
49 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_7_15 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148/wkwebview leadeon/12.0.9/CMCCIT',
50 'x-requested-with': 'XMLHttpRequest',
51 'Sec-Fetch-Site': 'same-origin',
52 'Accept-Language': 'zh-CN,zh-Hans;q=0.9',
53 'Sec-Fetch-Mode': 'cors',
54 'Content-Type': 'application/json;charset=UTF-8',
55 'Origin': 'https://wx.10086.cn',
56 'Referer': 'https://wx.10086.cn/qwhdhub/qwhdmark/1021122301?channelId=P00000057578&yx=9000239640&redCode=rec_feedHotZoneApp_P00000057578&token=QWHDSSOD20260403T185702396DU1021122301Htb7t4R457104',
57 'login-check': '1',
58 'Sec-Fetch-Dest': 'empty',
59 'Cookie': "QWHD_SESSION_TOKEN=" + this.token,
60 },
61 data: JSON.stringify({
62 "date": toDay
63 })
64 };
65 let { data: result } = await axios.request(options);
66 if (result?.code == 'SUCCESS') {
67 //打印签到结果
68 $.log(`🌸账号[${this.index}]` + `🕊签到成功🎉`);
69 } else {
70 $.log(`🌸账号[${this.index}] 签到-失败:${result.msg}❌`)
71 }
72
73
74
75
76 }
77
78
79

Callers 1

runMethod · 0.95

Calls 3

timeMethod · 0.45
requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected