(signType)
| 525 | } |
| 526 | |
| 527 | async getProgress(signType) { |
| 528 | const apiPath = Number(signType) === 0 ? "/signed/capp/signed/getprogress" : "/signed/capp/signed/getnewprogress"; |
| 529 | const result = await this.ctx.request({ |
| 530 | apiPath, |
| 531 | shopId: this.shop.shopId, |
| 532 | token: this.token, |
| 533 | }); |
| 534 | if (!result.success) throw new Error(result.msg || JSON.stringify(result)); |
| 535 | return result.data || {}; |
| 536 | } |
| 537 | |
| 538 | getSignedState(reward, progress) { |
| 539 | const signType = Number(reward.signCycle || 0); |