()
| 435 | } |
| 436 | |
| 437 | async taskOutline() { |
| 438 | const authCode = await this.getMainCode(); |
| 439 | if (!authCode) throw new Error("缺少 openid,无法获取任务 auth_code"); |
| 440 | const res = await this.request("GET", TASK_OUTLINE, { |
| 441 | params: { |
| 442 | mp_id: WPS_MPID, |
| 443 | auth_code: authCode, |
| 444 | }, |
| 445 | }); |
| 446 | return assertOk(res, "查询任务列表") || {}; |
| 447 | } |
| 448 | |
| 449 | async lotteryTimes() { |
| 450 | const res = await this.request("GET", LOTTERY_TIMES, { |
no test coverage detected