chore(游戏王活动): 添加注释

This commit is contained in:
hzj 2025-12-22 12:09:29 +08:00
parent ad28626119
commit a908d445bf

View File

@ -635,8 +635,7 @@ const showRanking = computed(() => {
//
const getNextMondayInBeijing = () => {
const now = new Date()
//
const targetDate = new Date(now.getTime())
const targetDate = new Date(now.getTime()) //
//
const utcTime = now.getTime() + now.getTimezoneOffset() * 60000
@ -652,7 +651,7 @@ const getNextMondayInBeijing = () => {
if (normalizedDay === 0) {
//
if (beijingHour >= 5) {
daysToAdd = 7 //
daysToAdd = 7 // 5
} else {
daysToAdd = 0 //
}
@ -661,8 +660,8 @@ const getNextMondayInBeijing = () => {
}
//
targetDate.setDate(targetDate.getDate() + daysToAdd)
targetDate.setHours(5, 0, 0, 0) // 5
targetDate.setDate(targetDate.getDate() + daysToAdd) //
targetDate.setHours(5, 0, 0, 0) // 5
return targetDate.getTime()
}