()
| 291 | |
| 292 | // 获取日期字符串(格式:YYYY-MM-DD) |
| 293 | function getDateString(): string { |
| 294 | const now = new Date() |
| 295 | const year = now.getFullYear() |
| 296 | const month = String(now.getMonth() + 1).padStart(2, '0') |
| 297 | const day = String(now.getDate()).padStart(2, '0') |
| 298 | return `${year}-${month}-${day}` |
| 299 | } |
no outgoing calls
no test coverage detected