Commit 81bb2c2e178cbd40794cb028cd4d19c95919123b
1 parent
75bce7fa
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/function.go
| ... | ... | @@ -45,8 +45,8 @@ func NewCaiPiaoRound(start, end, count, round int) { |
| 45 | 45 | curround.FakeNum = fakenum |
| 46 | 46 | |
| 47 | 47 | savestr, err := json.Marshal(&curround) |
| 48 | - if err != nil { | |
| 49 | - logger.Error("NewCaiPiaoRound err=%v", err) | |
| 48 | + if err == nil { | |
| 49 | + | |
| 50 | 50 | err = redishandler.GetRedisClient().SetString(redis.CAIPIAOKAIJIANGCURRENT_KEY, string(savestr)) |
| 51 | 51 | if err != nil { |
| 52 | 52 | logger.Error("NewCaiPiaoRound err=%v", err) | ... | ... |