MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / getSignList

Method getSignList

wxapp/bluedash.js:199–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 async getSignList() {
200 try {
201 const data = await this.request({
202 apiPath: "/app-api/member/sign-log/page",
203 params: {
204 pageNo: 1,
205 pageSize: 100,
206 },
207 });
208 const list = data?.pageResult?.list || [];
209 const today = new Date().toISOString().slice(0, 10);
210 this.isTodaySign = list.some((item) => item?.date === today);
211 $.log(`账号[${this.index}] 签到记录: 连续${data?.coiledDay || 0}天 今日=${this.isTodaySign ? "已签" : "未签"}`);
212 } catch (e) {
213 $.log(`账号[${this.index}] 查询签到记录失败: ${e.message || e}`);
214 if (e.code === 401 || /token|登录|授权/i.test(String(e.message || e))) this.removeCachedToken();
215 }
216 }
217
218 async doSign() {
219 if (this.isTodaySign) {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
removeCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected