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

Method doSign

wxapp/campari.js:200–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 async doSign() {
201 try {
202 const info = await this.getSignInfo();
203 const text = rewardText(info.pointFlowList);
204 if (info.todaySignInFlag) {
205 $.log(`账号[${this.index}] 今日已签到${text ? `,${text}` : ""}`);
206 return;
207 }
208 $.log(`账号[${this.index}] 签到完成${text ? `,${text}` : ""}`);
209 } catch (e) {
210 const message = e.message || e;
211 $.log(`账号[${this.index}] 签到失败: ${message}`);
212 if (isTokenError(message)) this.removeCachedToken();
213 }
214 }
215}
216
217!(async () => {

Callers 1

runMethod · 0.95

Calls 5

getSignInfoMethod · 0.95
removeCachedTokenMethod · 0.95
rewardTextFunction · 0.70
isTokenErrorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected