()
| 173 | } |
| 174 | |
| 175 | signRange() { |
| 176 | const today = new Date(); |
| 177 | const start = new Date(today); |
| 178 | const end = new Date(today); |
| 179 | start.setDate(today.getDate() - 3); |
| 180 | end.setDate(today.getDate() + 3); |
| 181 | return { |
| 182 | startDate: `${formatDate(start)} 00:00:00`, |
| 183 | endDate: `${formatDate(end)} 23:59:59`, |
| 184 | todayDate: formatDate(today), |
| 185 | }; |
| 186 | } |
| 187 | |
| 188 | async querySignInfo(prefix = "签到信息") { |
| 189 | const range = this.signRange(); |
no test coverage detected