From 9aeeffce929a781b558256e95f08457863cd2121 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 13:49:55 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/logic.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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