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

Method getPointsInfo

wxapp/parkson.js:211–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }
210
211 async getPointsInfo() {
212 try {
213 const data = await this.request({
214 method: "GET",
215 apiPath: "/pointsSign/user/pointsInfo/query",
216 });
217 $.log(`账号[${this.index}] 积分: ${data?.pointsNums ?? "未知"} 连签=${data?.seriesDays ?? 0} 今日=${data?.signTodayResult ? "已签" : "未签"}`);
218 return data;
219 } catch (e) {
220 $.log(`账号[${this.index}] 查询积分失败: ${e.message || e}`);
221 if (/token|登录|授权|401/i.test(String(e.message || e))) this.removeCachedToken();
222 }
223 }
224
225 async getSignList() {
226 try {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
removeCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected