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

Method getDrawNum

wxapp/iqoo.js:277–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 }
276
277 async getDrawNum() {
278 try {
279 const result = await this.request("v3/today.draw.count", {}, { method: "GET" });
280 if (result?.Data?.count === 0) {
281 await this.draw();
282 } else {
283 $.log(`账号[${this.index}] 今日已抽奖`);
284 }
285 } catch (e) {
286 $.log(`账号[${this.index}] 查询抽奖次数失败:${e.message || e}`);
287 }
288 }
289
290 async draw() {
291 try {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
drawMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected