Commit c509076914cb438af9520f78603254d71cfdbe82
1 parent
9066d1f1
Exists in
master
提交
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
src/HttpServer/logic/logic.go
... | ... | @@ -60,14 +60,6 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { |
60 | 60 | |
61 | 61 | for { |
62 | 62 | |
63 | - uinfo, err := GetUserInfo(strconv.Itoa(uuid)) | |
64 | - if err != nil || uinfo == nil { | |
65 | - logger.Error("HandlerSettlement getuserinfo failed=%v", err) | |
66 | - resp.Code = 1 | |
67 | - resp.Message = "get userinfo failed" | |
68 | - break | |
69 | - } | |
70 | - | |
71 | 63 | //先判断一下待开奖列表 |
72 | 64 | iexis, err := redishandler.GetRedisClient().HExists(redis.CAIPIAOKAIJIANGWAIT_KEY, strconv.Itoa(rdata.Round)) |
73 | 65 | if err == nil && iexis { |
... | ... | @@ -185,6 +177,13 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { |
185 | 177 | } |
186 | 178 | } |
187 | 179 | |
180 | + uinfo, err := GetUserInfo(strconv.Itoa(uuid)) | |
181 | + if err != nil || uinfo == nil { | |
182 | + logger.Error("HandlerSettlement getuserinfo failed=%v", err) | |
183 | + resp.Code = 1 | |
184 | + resp.Message = "get userinfo failed" | |
185 | + break | |
186 | + } | |
188 | 187 | uinfo.DuboCat = uinfo.DuboCat[:0] |
189 | 188 | |
190 | 189 | SaveUserInfo(uinfo, strconv.Itoa(uuid)) | ... | ... |