修复了bug:1.发送逻辑之后未对返回体做校验,添加状态码输出。2.去掉循环定时器导致的bug 3.每次执行完成后输出距离下次执行的时间
parent
8a68269c8f
commit
5dbd22f1f6
|
@ -29,7 +29,7 @@ func TimeUntilFriday() time.Duration {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
case time.Saturday:
|
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)
|
return friday.Sub(today)
|
||||||
case time.Sunday:
|
case time.Sunday:
|
||||||
friday := time.Date(today.Year(), today.Month(), today.Day()+5, 17, 0, 0, 0, today.Location())
|
friday := time.Date(today.Year(), today.Month(), today.Day()+5, 17, 0, 0, 0, today.Location())
|
||||||
|
|
Loading…
Reference in New Issue