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

Method getMemberPoints

wxapp/roki.js:296–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294 }
295
296 async getMemberPoints() {
297 try {
298 const result = await this.request({ apiPath: "/user/member/points" });
299 const data = result.data || {};
300 const points = data.points ?? data.availablePoints ?? data.totalPoints ?? data;
301 $.log(`账号[${this.index}] 当前积分: ${typeof points === "object" ? JSON.stringify(points) : points}`);
302 } catch (e) {
303 $.log(`账号[${this.index}] 查询积分失败: ${e.message || e}`);
304 }
305 }
306}
307
308!(async () => {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected