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

Method getPointsInfo

wxapp/fafa.js:243–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 async getPointsInfo() {
244 try {
245 const data = await this.request({
246 method: "GET",
247 apiPath: "/pointsSign/user/pointsInfo/query",
248 });
249 $.log(`账号[${this.index}] 积分: ${data?.pointsNums ?? "未知"} 连签=${data?.seriesDays ?? 0} 今日=${data?.signTodayResult ? "已签" : "未签"}`);
250 return data;
251 } catch (e) {
252 const message = e.message || e;
253 $.log(`账号[${this.index}] 查询积分失败: ${message}`);
254 if (/token|登录|授权|401/i.test(String(message))) this.removeCachedToken();
255 }
256 }
257
258 async getSignList() {
259 try {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
removeCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected