- 日常任务每晚9点开始
This commit is contained in:
@@ -83,7 +83,7 @@ func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime ti
|
||||
func StartDailyWork() {
|
||||
if globals.ReallyCallPlatformAPI {
|
||||
now := time.Now()
|
||||
runTime := time.Date(now.Year(), now.Month(), now.Day(), 0, 25, 0, 0, time.Local) // 凌晨00:25点开始执行
|
||||
runTime := time.Date(now.Year(), now.Month(), now.Day(), 21, 0, 0, 0, time.Local) // 凌晨00:25点开始执行
|
||||
waitDuration := runTime.Sub(now)
|
||||
if waitDuration < 5*time.Second {
|
||||
waitDuration += 24 * time.Hour
|
||||
|
||||
Reference in New Issue
Block a user