diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 142269b..6c6a80c 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -309,7 +309,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { resp.Data.TimingReward = true resp.Data.Now = int(time.Now().Unix()) - uinfo.Gold = addgold + uinfo.Gold += addgold uinfo.GoldSum += addgold uinfo.AddToRank() resp.Data.Output = strconv.FormatInt(uinfo.Goldrate, 10) @@ -485,7 +485,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { addgold = uinfo.Goldrate * offsec } - uinfo.Gold = addgold + uinfo.Gold += addgold uinfo.GoldSum += addgold uinfo.AddToRank() } -- libgit2 0.21.0