From bf8feb78cf7dac2d0b54c2a134362cf8d231fe8f Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Fri, 12 Jun 2020 16:40:12 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/function.go | 14 +++----------- src/HttpServer/logic/logic.go | 2 ++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 719478a..f0d8964 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -43,17 +43,8 @@ func NewCaiPiaoRound(start, end, count, round int) { curround.CurRound = round curround.CurNum = 0 curround.FakeNum = fakenum - - savestr, err := json.Marshal(&curround) - if err == nil { - - err = redishandler.GetRedisClient().SetString(redis.CAIPIAOKAIJIANGCURRENT_KEY, string(savestr)) - if err != nil { - logger.Error("NewCaiPiaoRound err=%v", err) - } - } else { - logger.Error("NewCaiPiaoRound err=%v", err) - } + logger.Info("SetCurCaiCatList") + SetCurCaiCatList(&curround) //首先清楚原先的号码 redishandler.GetRedisClient().Delete(redis.CAIPIAOLEFTNUM_KEY) @@ -103,6 +94,7 @@ func GetCurCaiCatList() *CurDuboCatList { //设置当前彩池 func SetCurCaiCatList(c *CurDuboCatList) { + logger.Info("SetCurCaiCatList") savestr, err := json.Marshal(c) if err != nil { logger.Error("SetCurCaiCatList err=%v", err) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 0def9e7..bc7903b 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -1389,6 +1389,7 @@ func HandlerAutoChoose(w http.ResponseWriter, data string, uuid int) { tmp.UserId = uuid curpool.List = append(curpool.List, tmp) curpool.CurNum = len(curpool.List) + logger.Info("SetCurCaiCatList") SetCurCaiCatList(curpool) //需要处理一下奖池是否满了 fullnum := 199 @@ -1477,6 +1478,7 @@ func HandlerChooseNum(w http.ResponseWriter, data string, uuid int) { tmp.UserId = uuid curpool.List = append(curpool.List, tmp) curpool.CurNum = len(curpool.List) + logger.Info("SetCurCaiCatList") SetCurCaiCatList(curpool) //需要处理一下奖池是否满了 fullnum := 199 -- libgit2 0.21.0