()
| 236 | } |
| 237 | |
| 238 | async queryRecord() { |
| 239 | if (!this.task?.id) return; |
| 240 | try { |
| 241 | const data = await this.request({ |
| 242 | apiPath: "/app/jingyoujia/taskContinuousRecord/queryRecord", |
| 243 | params: { taskId: this.task.id }, |
| 244 | }); |
| 245 | this.record = data || {}; |
| 246 | $.log(`账号[${this.index}] 签到状态: 连续${data?.continuousNum ?? 0}天 今日=${data?.todayFinish ? "已签" : "未签"}`); |
| 247 | } catch (e) { |
| 248 | $.log(`账号[${this.index}] 查询签到状态失败: ${e.message || e}`); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | async signIn() { |
| 253 | if (!this.task?.id) return; |