Commit b9ef634316881079ae9f1500dd5659dc628911d2
1 parent
9eab11de
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -91,7 +91,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { | @@ -91,7 +91,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { | ||
91 | } | 91 | } |
92 | var tmp UserCaiPiaoHistory | 92 | var tmp UserCaiPiaoHistory |
93 | tmp.RewardNum, _ = strconv.Atoi(rdata.RewardNum) | 93 | tmp.RewardNum, _ = strconv.Atoi(rdata.RewardNum) |
94 | - cid := strconv.Itoa(list[idx].CurRound) + rdata.RewardNum | 94 | + cid := strconv.Itoa(list[idx].CurRound) + strconv.Itoa(vval.ChooseNum) |
95 | tmp.CatId, _ = strconv.Atoi(cid) | 95 | tmp.CatId, _ = strconv.Atoi(cid) |
96 | tmp.Round = rdata.Round | 96 | tmp.Round = rdata.Round |
97 | tmp.Cnum = vval.ChooseNum | 97 | tmp.Cnum = vval.ChooseNum |
@@ -137,7 +137,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { | @@ -137,7 +137,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { | ||
137 | } | 137 | } |
138 | var tmp UserCaiPiaoHistory | 138 | var tmp UserCaiPiaoHistory |
139 | tmp.RewardNum, _ = strconv.Atoi(rdata.RewardNum) | 139 | tmp.RewardNum, _ = strconv.Atoi(rdata.RewardNum) |
140 | - cid := strconv.Itoa(rdata.Round) + rdata.RewardNum | 140 | + cid := strconv.Itoa(rdata.Round) + strconv.Itoa(vval.ChooseNum) |
141 | tmp.CatId, _ = strconv.Atoi(cid) | 141 | tmp.CatId, _ = strconv.Atoi(cid) |
142 | tmp.Round = rdata.Round | 142 | tmp.Round = rdata.Round |
143 | tmp.Cnum = vval.ChooseNum | 143 | tmp.Cnum = vval.ChooseNum |