()
| 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 { |
no test coverage detected