mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-06 19:16:40 +01:00
add calc.go Growths in time, Mines costs. Applied to game
This commit is contained in:
@@ -73,15 +73,15 @@ func handleGetUser(c *gin.Context) {
|
||||
fail(c, err, "error on getting user")
|
||||
return
|
||||
}
|
||||
resources, err := user.GetResources()
|
||||
if err != nil {
|
||||
fail(c, err, "error on getting user resources")
|
||||
return
|
||||
}
|
||||
// resources, err := user.GetResources()
|
||||
// if err != nil {
|
||||
// fail(c, err, "error on getting user resources")
|
||||
// return
|
||||
// }
|
||||
|
||||
c.JSON(200, gin.H{
|
||||
"user": user,
|
||||
"resources": resources,
|
||||
"user": user,
|
||||
// "resources": resources,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user