()
| 444 | } |
| 445 | |
| 446 | async checkToken() { |
| 447 | try { |
| 448 | const result = await this.ctx.request({ |
| 449 | apiPath: "/signed/capp/signed/getreward", |
| 450 | shopId: this.shop.shopId, |
| 451 | token: this.token, |
| 452 | }); |
| 453 | return !!result.success; |
| 454 | } catch { |
| 455 | return false; |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | async login() { |
| 460 | try { |