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

Method signIn

wxapp/mfd.js:297–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295 }
296
297 async signIn() {
298 try {
299 if (this.signedToday) {
300 $.log(`账号[${this.index}] 今日已签到`);
301 return;
302 }
303 const result = await this.request({
304 method: "POST",
305 apiPath: "/tnew/myfoodiepet-member/v1/member/sign",
306 data: { memberId: this.memberId },
307 });
308 $.log(`账号[${this.index}] 签到成功: ${result.msg || result.message || "ok"}`);
309 } catch (e) {
310 $.log(`账号[${this.index}] 签到失败: ${e.message || e}`);
311 if (isTokenError(e)) this.removeCachedToken();
312 }
313 }
314}
315
316!(async () => {

Callers 1

runMethod · 0.95

Calls 4

requestMethod · 0.95
removeCachedTokenMethod · 0.95
isTokenErrorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected