Корректировка под более-менее финальную версию протокола

This commit is contained in:
ErickSkrauch
2016-07-29 01:13:09 +03:00
parent c2d0cb93cb
commit 64bf7deb79
6 changed files with 10 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ package routes
import (
"net/http"
"strings"
"strconv"
"elyby/minecraft-skinsystem/lib/data"
@@ -17,7 +16,7 @@ func SetSkin(w http.ResponseWriter, r *http.Request) {
}
skin := new(data.SkinItem)
skin.Nickname = strings.ToLower(r.PostFormValue("nickname"))
skin.Username = r.PostFormValue("username")
skin.UserId, _ = strconv.Atoi(r.PostFormValue("userId"))
skin.SkinId, _ = strconv.Atoi(r.PostFormValue("skinId"))
skin.Hash = r.PostFormValue("hash")