diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 761101d..2984e0f 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -402,10 +402,10 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) { for _, v := range vv { rank++ - rinfobyte, _ := v.(string) - logger.Info("HandlerQueryPlayerRank ,v=%v", rinfobyte) - ruid, _ := strconv.Atoi(rinfobyte) - rindo, err := GetUserInfo(rinfobyte) + rinfobyte, _ := v.([]byte) + logger.Info("HandlerQueryPlayerRank ,v=%v", string(rinfobyte)) + ruid, _ := strconv.Atoi(string(rinfobyte)) + rindo, err := GetUserInfo(string(rinfobyte)) if err == nil && rindo != nil { var tmp RankInfoDesc tmp.UserId = ruid -- libgit2 0.21.0