MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / task_signIn

Method task_signIn

qtx.js:119–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118 }
119 async task_signIn() {//userinfo
120 try {
121 let options = {
122 url: `https://carbon.lcago.cn/signIn/sign`,
123 headers: this.headers,
124 body: `{"token":"${this.ck}","platform":"android","model":"MI8","appChannel":"qtx","version":"1.3.3_VersionCode_111","deviceCoding":"${this.deviceCoding}","language":"ZH","systemversion":"10"}`
125
126 }
127 //console.log(options);
128 let result = await httpRequest(options);
129 //console.log(result);
130 if (result.respcod == '01') {
131 DoubleLog(`账号[${this.index}] 签到成功`);
132 } else if (result.respcod == '02') {
133 DoubleLog(`账号[${this.index}] 今日已签到`);
134 } else {
135 DoubleLog(`账号[${this.index}] 签到失效,原因未知!`);
136 console.log(result);
137 }
138 } catch (e) {
139 console.log(e);
140 }
141 }
142 async get_question() {//获取答题
143 try {
144 let options = {

Callers 1

startFunction · 0.80

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected