MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / gardenPost

Method gardenPost

wxapp/junpinhui.js:266–271  ·  view source on GitHub ↗
(urlPath, data = {})

Source from the content-addressed store, hash-verified

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");

Callers 1

encryptedPostMethod · 0.95

Calls 3

withReloginMethod · 0.95
requestFunction · 0.70
assertOkFunction · 0.70

Tested by

no test coverage detected