()
| 515 | } |
| 516 | |
| 517 | async getReward() { |
| 518 | const result = await this.ctx.request({ |
| 519 | apiPath: "/signed/capp/signed/getreward", |
| 520 | shopId: this.shop.shopId, |
| 521 | token: this.token, |
| 522 | }); |
| 523 | if (!result.success) throw new Error(result.msg || JSON.stringify(result)); |
| 524 | return result.data || {}; |
| 525 | } |
| 526 | |
| 527 | async getProgress(signType) { |
| 528 | const apiPath = Number(signType) === 0 ? "/signed/capp/signed/getprogress" : "/signed/capp/signed/getnewprogress"; |