Commit 57019115 by xuzhenhao

增加了相应的错误返回

1 parent a4204365
Showing with 2 additions and 0 deletions
......@@ -461,6 +461,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
s = i / 2
}
if prerankIndex+index-1 == rankIndex {
log.Println("set resIndex")
resIndex = prerankIndex + index
}
igt[s].UID = currUID
......@@ -500,6 +501,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log.Printf("select db err:")
return nil, resIndex, err
}
log.Println(resIndex)
return &igt, resIndex, nil
}
func IceGameTopRedisCreateRank(gtid string, gid string, toptype string, gtname string, sorcetype string, sorcesub string, sorceorder string) error {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!