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 7247b1d2
authored
Dec 09, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了返回个人排行信息的时候可以看到前后玩家信息的功能
1 parent
10edf9c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
sdkredis/ice_gametopREDIS.go
sdkredis/ice_gametopREDIS.go
View file @
7247b1d
...
@@ -294,9 +294,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
...
@@ -294,9 +294,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
var
sorterr
error
var
sorterr
error
if
sorceorder
==
"0"
{
if
sorceorder
==
"0"
{
strList
,
sorterr
=
RedisSort
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
prerankIndex
,
nextrankIndex
)
strList
,
sorterr
=
RedisSort
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
0
,
-
1
)
}
else
if
sorceorder
==
"1"
{
}
else
if
sorceorder
==
"1"
{
strList
,
sorterr
=
RedisReverseSort
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
prerankIndex
,
nextrankIndex
)
strList
,
sorterr
=
RedisReverseSort
(
redisConn
,
"sortset:gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
,
0
,
-
1
)
}
}
if
sorterr
!=
nil
{
if
sorterr
!=
nil
{
log
.
Println
(
"RedisSort err[%v]"
,
sorterr
)
log
.
Println
(
"RedisSort err[%v]"
,
sorterr
)
...
@@ -435,7 +435,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
...
@@ -435,7 +435,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log
.
Println
(
"rank has no data"
)
log
.
Println
(
"rank has no data"
)
}
}
igt
=
make
([]
IGT
,
len
(
strList
)
/
2
)
igt
=
make
([]
*
IGT
,
len
(
strList
)
/
2
)
index
:=
1
index
:=
1
var
resultstr
string
var
resultstr
string
var
valuecount
=
2
var
valuecount
=
2
...
...
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