Commit 9aeeffce929a781b558256e95f08457863cd2121

Authored by 陆恒
1 parent 2f1e59f9
Exists in master

提交

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/HttpServer/logic/logic.go
@@ -402,10 +402,10 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) { @@ -402,10 +402,10 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) {
402 for _, v := range vv { 402 for _, v := range vv {
403 rank++ 403 rank++
404 404
405 - rinfobyte, _ := v.(string)  
406 - logger.Info("HandlerQueryPlayerRank ,v=%v", rinfobyte)  
407 - ruid, _ := strconv.Atoi(rinfobyte)  
408 - rindo, err := GetUserInfo(rinfobyte) 405 + rinfobyte, _ := v.([]byte)
  406 + logger.Info("HandlerQueryPlayerRank ,v=%v", string(rinfobyte))
  407 + ruid, _ := strconv.Atoi(string(rinfobyte))
  408 + rindo, err := GetUserInfo(string(rinfobyte))
409 if err == nil && rindo != nil { 409 if err == nil && rindo != nil {
410 var tmp RankInfoDesc 410 var tmp RankInfoDesc
411 tmp.UserId = ruid 411 tmp.UserId = ruid