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

Method signIn

daily/chery.js:68–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 async signIn() {
69 let options = {
70 method: 'POST',
71 url: `https://mobile-consumer-sapp.chery.cn/web/event/trigger?encryptParam=${encodeURIComponent(this.encryptParams(`access_token=${this.token}&terminal=3`))}`,
72 headers: {
73 "user-agent": "Dart/2.19 (dart:io)",
74 "appversioncode": "26030901",
75 "accept": "application/json, text/plain, */*",
76 "appversion": "3.6.9",
77 "accept-language": "zh-CN,zh;q=0.9",
78 "accept-encoding": "gzip, deflate",
79 "host": "mobile-consumer-sapp.chery.cn",
80 "content-type": "application/json; charset=UTF-8",
81 "agent": "android",
82 "encryptflag": "true",
83 "request-channel": "app"
84 },
85 data:
86 Buffer.from(this.encryptParams(JSON.stringify({ "eventCode": "SJ10002" })), "utf-8"),
87 transformRequest: [(d, headers) => d]
88 };
89 let { data: result } = await axios.request(options);
90 if (result.status == 200) {
91 $.log(`✅账号[${this.index}] 【签到】[${result.message}]🎉`);
92 } else {
93 $.log(`❌账号[${this.index}] 【签到】[${result.message}]`);
94 //console.log(result);
95 }
96
97
98
99
100 }
101 async info() {
102 let options = {
103 method: 'GET',

Callers 1

runMethod · 0.95

Calls 3

encryptParamsMethod · 0.95
requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected