Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
xuzhenhao
/
rlw-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 02bf1b9f
authored
Jan 02, 2018
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试bug
1 parent
5c6bb579
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
sdkredis/ice_gametopREDIS.go
sdkredis/ice_gametopREDIS.go
View file @
02bf1b9
...
...
@@ -293,7 +293,7 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
var
strList
[]
string
var
rankIndex
int64
if
sorceorder
==
"0"
{
rank
,
err
:=
GetSingleUserRank
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
rank
,
err
:=
GetSingleUserRank
(
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
if
err
!=
nil
{
log
.
Println
(
err
,
" errno:"
,
rank
.
(
string
))
return
...
...
@@ -305,7 +305,7 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
}
rankIndex
=
count
.
(
int64
)
-
rank
.
(
int64
)
-
1
}
else
if
sorceorder
==
"1"
{
rank
,
err
:=
GetSingleUserRank
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
rank
,
err
:=
GetSingleUserRank
(
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
if
err
!=
nil
{
log
.
Println
(
err
,
" errno:"
,
rank
.
(
string
))
return
...
...
@@ -314,12 +314,13 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
}
score
,
err
:=
RedisZScore
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
if
err
!=
nil
{
resIndex
=
"105202"
return
nil
,
resIndex
,
err
log
.
Println
(
err
)
return
}
if
score
==
nil
{
err
=
errors
.
New
(
"用户未提交分数"
)
return
nil
,
"105201"
,
err
log
.
Println
(
err
)
return
}
scoreString
:=
string
(
score
.
([]
uint8
))
igt
=
new
(
IGT
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment