| 220 | } |
| 221 | |
| 222 | async findCheckTask() { |
| 223 | try { |
| 224 | const data = await this.request({ apiPath: "/app/jingyoujia/taskContinuousRecord/findCheckTask" }); |
| 225 | if (!data || !data.id) { |
| 226 | $.log(`账号[${this.index}] 当前无签到活动`); |
| 227 | return; |
| 228 | } |
| 229 | this.task = data; |
| 230 | const start = String(data.startTime || "").slice(0, 10); |
| 231 | const end = String(data.endTime || "").slice(0, 10); |
| 232 | $.log(`账号[${this.index}] 签到活动: taskId=${data.id}${start || end ? ` ${start}-${end}` : ""}`); |
| 233 | } catch (e) { |
| 234 | $.log(`账号[${this.index}] 获取签到活动失败: ${e.message || e}`); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | async queryRecord() { |
| 239 | if (!this.task?.id) return; |