(urlPath, data = {})
| 264 | } |
| 265 | |
| 266 | async gardenPost(urlPath, data = {}) { |
| 267 | const res = await this.withRelogin(() => |
| 268 | request("post", GARDEN_BASE, urlPath, { token: this.token, data }) |
| 269 | ); |
| 270 | return assertOk(res, urlPath); |
| 271 | } |
| 272 | |
| 273 | async getEncryptKey() { |
| 274 | if (!this.openid) throw new Error("缺少 openid,无法生成微信 encryptData"); |
no test coverage detected