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

Method doCheckin

wxapp/fej.js:226–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 async doCheckin() {
227 if (!this.checkinId) {
228 $.log(`账号[${this.index}] 未获取到 checkinId,跳过签到`);
229 return;
230 }
231 try {
232 const data = await this.request({
233 path: "/wscump/checkin/checkinV2.json",
234 params: { checkinId: this.checkinId },
235 });
236 const awards = (data?.list || []).map((item) => item?.infos?.title).filter(Boolean).join(", ");
237 $.log(`账号[${this.index}] 签到成功: ${data?.desc || ""}${awards ? ` ${awards}` : ""}`);
238 } catch (e) {
239 $.log(`账号[${this.index}] 签到失败: ${e.message || e}`);
240 if (/access_token|token|登录|授权|请先登录/i.test(String(e.message || e))) this.removeCachedToken();
241 }
242 }
243
244 async getPoints() {
245 try {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
removeCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected