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

Method read_task

xiaosatonglu.js:196–217  ·  view source on GitHub ↗
(articleId)

Source from the content-addressed store, hash-verified

194 }
195 }
196 async read_task(articleId) {
197 try {
198 let options = {
199 fn: "阅读执行",
200 method: "get",
201 url: `https://wxapi.hoolo.tv/event/dtqp/index.php?s=home/baoming/postBaoming/&activityId=428&name=${this.accountId}&city=${articleId}&gender=${this.round}&cellphone=${this.mobile}&type=jsonp`,
202 headers: this.get_headers(),
203 };
204 let { body: result } = await httpRequest(options);
205 //console.log(options);
206 result = JSON.parse(result);
207 //console.log(result);
208 if (result.code == 0) {
209 //console.log(`✅阅读回调成功🎉`);
210 } else {
211 console.log(`❌[${options.fn}]失败`);
212 console.log(JSON.stringify(result));
213 }
214 } catch (e) {
215 console.log(e);
216 }
217 }
218
219 async lottery_num() {
220 try {

Callers 2

mainMethod · 0.95
read_statusMethod · 0.95

Calls 3

get_headersMethod · 0.95
httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected