| 280 | } |
| 281 | |
| 282 | async getContinuousDays() { |
| 283 | try { |
| 284 | const result = await this.request({ |
| 285 | apiPath: `/tnew/myfoodiepet-member/v1/member/continuous-days/${this.memberId}`, |
| 286 | }); |
| 287 | const data = result.data || {}; |
| 288 | this.signedToday = data.signedToday; |
| 289 | $.log(`账号[${this.index}] 签到状态: 连续${data.continuousDays ?? 0}天 今日=${data.signedToday ? "已签" : "未签"}`); |
| 290 | return data; |
| 291 | } catch (e) { |
| 292 | $.log(`账号[${this.index}] 查询签到状态失败: ${e.message || e}`); |
| 293 | return {}; |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | async signIn() { |
| 298 | try { |