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

Method showCheckinPage

wxapp/yz19.js:222–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 async showCheckinPage() {
223 try {
224 const data = await this.request({ path: "/wscump/checkin/show_checkin_page_v2.json" });
225 this.checkinId = data?.checkinId;
226 this.isShow = !!data?.isShow;
227 $.log(`账号[${this.index}] 签到活动: checkinId=${this.checkinId || "未获取"} isShow=${this.isShow}`);
228 } catch (e) {
229 $.log(`账号[${this.index}] 获取签到活动失败: ${e.message || e}`);
230 if (isTokenError(e.message || e)) this.removeCachedToken();
231 }
232 }
233
234 async doCheckin() {
235 if (!this.checkinId) {

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