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

Method doCheckin

wxapp/yingshujufeng.js:249–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 }
248
249 async doCheckin() {
250 if (!this.checkinId) {
251 $.log(`账号[${this.index}] 未获取到 checkinId,跳过签到`);
252 return;
253 }
254 try {
255 const data = await this.request({
256 path: "/wscump/checkin/checkinV2.json",
257 params: { checkinId: this.checkinId },
258 });
259 const awards = (data?.list || []).map((item) => item?.infos?.title).filter(Boolean).join(", ");
260 $.log(`账号[${this.index}] 签到成功: ${data?.desc || ""}${awards ? ` ${awards}` : ""}`);
261 } catch (e) {
262 const message = String(e.message || e);
263 if (/已达最大参与次数|已签到|重复签到/.test(message)) {
264 $.log(`账号[${this.index}] 今日已签到`);
265 return;
266 }
267 $.log(`账号[${this.index}] 签到失败: ${message}`);
268 if (isTokenError(message)) this.removeCachedToken();
269 }
270 }
271
272 async getPoints() {
273 try {

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