diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 39f333b..df1323e 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -215,6 +215,7 @@ func HandlerDoBuyCat(w http.ResponseWriter, data string, uuid int) { //需要重新计算速率 uinfo.CalcGoldRate() + uinfo.IsNew = 1 resp.Data.Price = strconv.FormatInt(uinfo.BuyCatInfo[rdata.CatId-1].CurPrice, 10) resp.Data.Position = catpos @@ -1454,6 +1455,7 @@ func HandlerExchangePos(w http.ResponseWriter, data string, uuid int) { } //重新计算速率 uinfo.CalcGoldRate() + uinfo.IsNew = 1 //保存玩家数据 SaveUserInfo(uinfo, strconv.Itoa(uuid)) -- libgit2 0.21.0