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

Method lotteryTimes

wxapp/wps.js:449–461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447 }
448
449 async lotteryTimes() {
450 const res = await this.request("GET", LOTTERY_TIMES, {
451 params: {
452 position: "wx_xcx_clock_activity",
453 },
454 });
455 if (res.result === "ok") {
456 $.log(`账号[${this.index}] 可抽奖次数: ${res.data ?? 0}`);
457 return Number(res.data || 0);
458 }
459 $.log(`账号[${this.index}] 查询抽奖次数失败: ${res.msg || JSON.stringify(res)}`);
460 return 0;
461 }
462
463 flattenTasks(outline = {}) {
464 const tasks = [];

Callers 1

lotteryMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected