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

Method getContinuousDays

wxapp/mfd.js:282–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280 }
281
282 async getContinuousDays() {
283 try {
284 const result = await this.request({
285 apiPath: `/tnew/myfoodiepet-member/v1/member/continuous-days/${this.memberId}`,
286 });
287 const data = result.data || {};
288 this.signedToday = data.signedToday;
289 $.log(`账号[${this.index}] 签到状态: 连续${data.continuousDays ?? 0}天 今日=${data.signedToday ? "已签" : "未签"}`);
290 return data;
291 } catch (e) {
292 $.log(`账号[${this.index}] 查询签到状态失败: ${e.message || e}`);
293 return {};
294 }
295 }
296
297 async signIn() {
298 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected