Commit 403ff4e5b037f9de0d512cbcb1ccb52adf62bac7
1 parent
79ea6ac6
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/logic.go
| ... | ... | @@ -215,6 +215,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { |
| 215 | 215 | |
| 216 | 216 | //需要重新计算速率 |
| 217 | 217 | uinfo.CalcGoldRate() |
| 218 | + uinfo.IsNew = 1 | |
| 218 | 219 | |
| 219 | 220 | resp.Data.Price = strconv.FormatInt(uinfo.BuyCatInfo[rdata.CatId-1].CurPrice, 10) |
| 220 | 221 | resp.Data.Position = catpos |
| ... | ... | @@ -1454,6 +1455,7 @@ func HandlerExchangePos(w http.ResponseWriter, data string, uuid int) { |
| 1454 | 1455 | } |
| 1455 | 1456 | //重新计算速率 |
| 1456 | 1457 | uinfo.CalcGoldRate() |
| 1458 | + uinfo.IsNew = 1 | |
| 1457 | 1459 | |
| 1458 | 1460 | //保存玩家数据 |
| 1459 | 1461 | SaveUserInfo(uinfo, strconv.Itoa(uuid)) | ... | ... |