MCPcopy
hub / github.com/smallfawn/QLScriptPublic / doLottery

Method doLottery

wxapp/haitian.js:385–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383 }
384
385 async doLottery() {
386 try {
387 const result = await this.request("/lucky/activity/extract", {
388 params: { activityCode: `jfcj${this.activity_code}` },
389 });
390 if (result?.lucky_record_vo) {
391 $.log(`🌸账号[${this.index}]🕊抽奖结果:${result.lucky_record_vo.prize_name}🎉`);
392 } else {
393 $.log(`🌸账号[${this.index}] 抽奖-失败:${JSON.stringify(result)}❌`);
394 }
395 } catch (e) {
396 $.log(`🌸账号[${this.index}] 抽奖-失败:${e.message || e}❌`);
397 }
398 }
399
400 async getLotteryTaskList() {
401 try {

Callers 1

getLotteryNumMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected