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 47f3ac7b
authored
Dec 28, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了redis工具库中的方法
1 parent
20d56b2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sdkredis/ice_gametopREDIS.go
sdkredis/ice_gametopREDIS.go
View file @
47f3ac7
...
...
@@ -399,7 +399,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
return
nil
,
"105201"
,
err
}
log
.
Println
(
score
)
scoreString
:=
"("
+
s
core
.
(
string
)
scoreString
:=
"("
+
s
tring
(
score
.
([]
uint8
)
)
// 获取当前用户前x位和后x位的排名数据
var
prerankIndex
int
var
nextrankIndex
int
...
...
@@ -449,7 +449,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
}
if
len
(
strList2
)
==
0
{
strList
=
append
(
strList
,
"ice_gametop:uid:"
+
uid
+
":gtid:"
+
gtid
+
":gid:"
+
gid
+
":toptype:"
+
toptype
+
":mykey"
)
strList
=
append
(
strList
,
s
core
.
(
string
))
strList
=
append
(
strList
,
s
tring
(
score
.
([]
uint8
)
))
if
len
(
strList1
)
!=
0
{
strList
=
append
(
strList
,
strList1
...
)
}
...
...
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