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

Method task_share

jlqc.js:167–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 async task_share() { // 执行分享
168 try {
169 const options = {
170 url: 'https://app.geely.com/api/v1/share/awardPoint',
171 headers: this.headersPostv1,
172 body: ``,
173 };
174 //console.log(options);
175 let result = await httpRequest(options);
176 //console.log(result);
177 if (result.code == "success") {
178 DoubleLog(`账号[${this.index}] 分享: ${result.code}`);
179 } else {
180 DoubleLog(`账号[${this.index}] 分享:失败 ❌ 了呢,原因未知!`);
181 console.log(result);
182 }
183 } catch (error) {
184 console.log(error);
185 }
186 }
187
188 async task_sign() { // 执行签到
189 var date = new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')

Callers

nothing calls this directly

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected