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

Method queryPoints

wxapp/ztkd.js:165–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 async queryPoints() {
166 const res = await this.api(MEMBER_HOST, "member/getMemberPoints", {}, true);
167 if (!res.success && !res.data) {
168 $.log(`积分查询:失败,${short(res)}`);
169 return;
170 }
171 const data = res.data || {};
172 $.log(`积分查询:当前积分=${data.totalPoint ?? "未知"},即将过期=${data.overDuePoint ?? 0}`);
173 }
174
175 signRange() {
176 const today = new Date();

Callers 1

runMethod · 0.95

Calls 3

apiMethod · 0.95
shortFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected