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

Method getReward

wxapp/jingjianx_all.js:517–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

signMethod · 0.95

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected