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

Method getSignStatus

wxapp/niuniuduanju.js:240–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238 }
239
240 async getSignStatus() {
241 try {
242 const result = await this.request({
243 apiPath: "/app/integral/selectIntegralDay",
244 params: {
245 classify: 1,
246 userId: this.user.userId || "",
247 },
248 });
249 const list = Array.isArray(result.data) ? result.data : [];
250 const signedDays = list.filter((item) => item?.num).length;
251 $.log(`账号[${this.index}] 本周签到记录: ${signedDays}/${list.length || 7}`);
252 return list;
253 } catch (e) {
254 $.log(`账号[${this.index}] 查询签到记录失败: ${e.message || e}`);
255 return [];
256 }
257 }
258
259 async signIn() {
260 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected