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

Method getIndexInfo

wxapp/feihe.js:231–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 }
230
231 async getIndexInfo() {
232 const result = await this.request({
233 method: "POST",
234 apiPath: "/api/structures/index",
235 data: { id: "" },
236 allowFail: true,
237 });
238 if (String(result?.code) === "200") {
239 const signModule = (result.data?.modules || []).find((item) => String(item.moduleType) === "17");
240 $.log(`账号[${this.index}] 首页签到入口: ${signModule ? "已发现" : "未发现"}`);
241 } else {
242 $.log(`账号[${this.index}] 首页信息查询失败: ${result?.msg || JSON.stringify(result)}`);
243 }
244 }
245
246 async signIn() {
247 const finish = await this.request({

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected