|
|
@@ -104,12 +104,6 @@ const GRANT_REASONS = ['新开户礼遇', '月度消费达标奖励', '生日专
|
|
|
|
|
|
function pad(n) { return String(n).padStart(2, '0') }
|
|
|
|
|
|
-function randomDate(baseDate, offsetDays) {
|
|
|
- const d = new Date(baseDate)
|
|
|
- d.setDate(d.getDate() - Math.floor(Math.random() * offsetDays))
|
|
|
- return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`
|
|
|
-}
|
|
|
-
|
|
|
function randomDateTime(baseDate, offsetDays) {
|
|
|
const d = new Date(baseDate)
|
|
|
d.setDate(d.getDate() - Math.floor(Math.random() * offsetDays))
|