MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / loadSignInfo

Method loadSignInfo

wxapp/tmj.js:293–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291 }
292
293 async loadSignInfo() {
294 if (!this.signActivityId) await this.findSignActivity();
295 const data = await this.request("/activity/sign/loadActivityInfo", {
296 activityId: this.signActivityId,
297 source: 1,
298 shopId: this.shopId,
299 });
300 this.signTitle = data?.title || this.signTitle;
301 const integral = data?.integral ?? data?.awardDescMobileList?.[0]?.awardDescList?.[0]?.integrationNum ?? "未知";
302 $.log(`账号[${this.index}] 签到状态: ${data?.canJoin === false ? "不可参与" : "可参与"} 奖励${integral}积分`);
303 this.saveCachedToken();
304 }
305
306 async queryMonthSign() {
307 const date = todayInfo();

Callers 1

runMethod · 0.95

Calls 4

findSignActivityMethod · 0.95
requestMethod · 0.95
saveCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected