diff --git a/routers/home.go b/routers/home.go index 092b30fe3..c676f51ad 100755 --- a/routers/home.go +++ b/routers/home.go @@ -8,6 +8,7 @@ package routers import ( "bytes" "encoding/json" + "fmt" "net/http" "strconv" "strings" @@ -754,11 +755,13 @@ func GetRankUser(index string) ([]map[string]interface{}, error) { } resultOrg := make([]map[string]interface{}, 0) for _, userRank := range result { + log.Info("userRank" + userRank) tmpIndex := strings.Index(userRank, " ") userName := userRank score := 0 label := "" if tmpIndex != -1 { + log.Info("len=" + fmt.Sprint(len(userRank)) + " index=" + fmt.Sprint(tmpIndex)) userName = userRank[0:tmpIndex] left := userRank[tmpIndex+1:] tmpIndex1 := strings.Index(left, " ")