Commit 9eab11de11f6daed449392534b6fdccaf1b0b0a1
1 parent
0d5ec860
Exists in
master
修复bug
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
| ... | ... | @@ -60,10 +60,13 @@ func StartHttpTicker() { |
| 60 | 60 | |
| 61 | 61 | var tmp UserCaiPiaoHistory |
| 62 | 62 | tmp.RewardNum = waits[k].RewardNum |
| 63 | - tmp.CatId = 48 | |
| 63 | + cid := strconv.Itoa(waits[k].CurRound) + strconv.Itoa(waits[k].RewardNum) | |
| 64 | + tmp.CatId, _ = strconv.Atoi(cid) | |
| 64 | 65 | tmp.Round = waits[k].CurRound |
| 65 | 66 | tmp.Cnum = vval.ChooseNum |
| 66 | 67 | uinfo.CaiPiaoInfo = append(uinfo.CaiPiaoInfo, tmp) |
| 68 | + | |
| 69 | + SaveUserInfo(uinfo, strconv.Itoa(val.List[randnum].UserId)) | |
| 67 | 70 | } |
| 68 | 71 | |
| 69 | 72 | } | ... | ... |
src/HttpServer/logic/logic.go
| ... | ... | @@ -142,6 +142,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { |
| 142 | 142 | tmp.Round = rdata.Round |
| 143 | 143 | tmp.Cnum = vval.ChooseNum |
| 144 | 144 | uinfo.CaiPiaoInfo = append(uinfo.CaiPiaoInfo, tmp) |
| 145 | + | |
| 145 | 146 | if vval.ChooseNum == tmp.RewardNum { |
| 146 | 147 | rewarduser = vval.UserId |
| 147 | 148 | |
| ... | ... | @@ -154,6 +155,7 @@ func HandlerSettlement(w http.ResponseWriter, data string, uuid int) { |
| 154 | 155 | |
| 155 | 156 | } |
| 156 | 157 | |
| 158 | + SaveUserInfo(uinfo, strconv.Itoa(vval.UserId)) | |
| 157 | 159 | } |
| 158 | 160 | |
| 159 | 161 | var tmp AlreadyDuboCatList | ... | ... |