feat: 支付闭环
This commit is contained in:
@@ -46,3 +46,11 @@ func GetZeroTime() time.Time {
|
||||
zeroTime := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local)
|
||||
return zeroTime
|
||||
}
|
||||
|
||||
// GetMaxTime 获取当天最大时间
|
||||
func GetMaxTime() time.Time {
|
||||
now := time.Now()
|
||||
// 2. 使用当天的年月日,将时分秒纳秒设为0,并保留原时区(Location)
|
||||
maxTime := time.Date(now.Year(), now.Month(), now.Day(), 23, 59, 59, 999999999, time.Local)
|
||||
return maxTime
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user