Commit 403ff4e5b037f9de0d512cbcb1ccb52adf62bac7

Authored by 陆恒
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,6 +215,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) {
215 215
216 //需要重新计算速率 216 //需要重新计算速率
217 uinfo.CalcGoldRate() 217 uinfo.CalcGoldRate()
  218 + uinfo.IsNew = 1
218 219
219 resp.Data.Price = strconv.FormatInt(uinfo.BuyCatInfo[rdata.CatId-1].CurPrice, 10) 220 resp.Data.Price = strconv.FormatInt(uinfo.BuyCatInfo[rdata.CatId-1].CurPrice, 10)
220 resp.Data.Position = catpos 221 resp.Data.Position = catpos
@@ -1454,6 +1455,7 @@ func HandlerExchangePos(w http.ResponseWriter, data string, uuid int) { @@ -1454,6 +1455,7 @@ func HandlerExchangePos(w http.ResponseWriter, data string, uuid int) {
1454 } 1455 }
1455 //重新计算速率 1456 //重新计算速率
1456 uinfo.CalcGoldRate() 1457 uinfo.CalcGoldRate()
  1458 + uinfo.IsNew = 1
1457 1459
1458 //保存玩家数据 1460 //保存玩家数据
1459 SaveUserInfo(uinfo, strconv.Itoa(uuid)) 1461 SaveUserInfo(uinfo, strconv.Itoa(uuid))