From c0d55caec6e1ecac0b05f7b73cb8942413be2a34 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Sun, 28 Jun 2020 10:19:59 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/function.go | 4 +++- src/HttpServer/logic/httpserver.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 0336db7..3e05237 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -491,7 +491,8 @@ func (u *UserData) HandlePassDay() { logger.Info("HandlePassDay lasttime=%v,lasttimestamp=%v", lasttime, lasttimestamp) - if u.IsResetToday == 0 && nowtimestamp.Hour() >= 12 { + //if u.IsResetToday == 0 && nowtimestamp.Hour() >= 12 { + if u.IsResetToday == 0 && nowtimestamp.Minute() >= 22 { u.DoubleLeftTimes = ACCGOLDRATELIMIT u.GetWatchAdsGoldTime = WATCHADSGOLDLIMIT u.DrawTicket = DRAWTICKETNUM @@ -502,6 +503,7 @@ func (u *UserData) HandlePassDay() { //u.LeftOfflineTimes = OFFLINETIMESLIMIT //u.EmptyBoxLeftTime = EMPTYBOXLIMIT u.IsResetToday = 1 + logger.Info("do12resetuid=%v", u.UserId) } if nowdaynum == lastdaynum { diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 9a8451f..9aebaea 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -31,7 +31,7 @@ func StartHttpTicker() { floatval := float32(randint) / 100 G_randVal = 180 + floatval } - if time.Now().Hour() == 12 && time.Now().Minute() < 10 { + if time.Now().Hour() == 12 && time.Now().Minute() < 5 { //处理开奖 logger.Info("Handle kaijian") waits := GetWaitCaiCatList() @@ -115,7 +115,7 @@ func StartHttpTicker() { } } - + time.Sleep(time.Second * 20) } }() } -- libgit2 0.21.0