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

Method run

wxapp/airui.js:241–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 async run() {
242 $.log(`\n账号[${this.index}] ${mask(this.openid || this.cacheKey)}`);
243 await this.ensureLogin();
244 await this.getUserInfo();
245
246 const before = await this.getSignInfo();
247 if (before.currentSignIn) {
248 $.log(`账号[${this.index}] 今日已签到,连续 ${before.continuityDay ?? "未知"} 天,总签到积分 ${before.totalSignInScore ?? "未知"}`);
249 return;
250 }
251
252 const score = await this.submitSign();
253 const after = await this.getSignInfo();
254 $.log(`账号[${this.index}] 签到成功,获得 ${score ?? "未知"} 积分,连续 ${after.continuityDay ?? "未知"} 天,总签到积分 ${after.totalSignInScore ?? "未知"}`);
255 }
256}
257
258!(async () => {

Callers 1

airui.jsFile · 0.45

Calls 6

ensureLoginMethod · 0.95
getUserInfoMethod · 0.95
getSignInfoMethod · 0.95
submitSignMethod · 0.95
maskFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected