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

Method getProgress

wxapp/jingjianx_all.js:527–536  ·  view source on GitHub ↗
(signType)

Source from the content-addressed store, hash-verified

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

Callers 1

signMethod · 0.95

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected