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

Method getActivityInfo

wxapp/aiguoyue.js:245–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 }
244
245 async getActivityInfo() {
246 if (!this.checkinId) return null;
247 const data = await this.request({
248 apiPath: "wscump/checkin/get_activity_by_yzuid_v2.json",
249 query: { checkinId: this.checkinId },
250 });
251 this.isCheckin = !!data?.isCheckin;
252 this.isOpen = data?.isOpen !== false;
253 const reward = (data?.dailyRewards || []).map((item) => item?.desc).filter(Boolean).join(", ");
254 $.log(`账号[${this.index}] 签到状态: ${this.isCheckin ? "已签" : "未签"} 连续${data?.continuesDay ?? 0}天${reward ? ` 今日奖励${reward}` : ""}`);
255 return data;
256 }
257
258 async doCheckin() {
259 if (!this.checkinId) {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected