修复了bug:1.发送逻辑之后未对返回体做校验,添加状态码输出。2.去掉循环定时器导致的bug 3.每次执行完成后输出距离下次执行的时间

master
Administrator 2024-05-04 00:59:23 +08:00
parent 8a68269c8f
commit 5dbd22f1f6
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func TimeUntilFriday() time.Duration {
return 0
}
case time.Saturday:
friday := time.Date(today.Year(), today.Month(), today.Day(), 17, 0, 0, 0, today.Location())
friday := time.Date(today.Year(), today.Month(), today.Day()+6, 17, 0, 0, 0, today.Location())
return friday.Sub(today)
case time.Sunday:
friday := time.Date(today.Year(), today.Month(), today.Day()+5, 17, 0, 0, 0, today.Location())