| 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({ |