Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
69b7f53f
Commit
69b7f53f
authored
Oct 11, 2019
by
张振华
Committed by
vipwzw
Oct 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1c6ee09e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
guess_test.go
plugin/dapp/guess/rpc/guess_test.go
+16
-8
No files found.
plugin/dapp/guess/rpc/guess_test.go
View file @
69b7f53f
...
...
@@ -1078,7 +1078,8 @@ func queryGuessByIds(gameIDs string) *gty.ReplyGuessGameInfos {
params
.
FuncName
=
gty
.
FuncNameQueryGamesByIDs
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
ReplyGuessGameInfos
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1093,7 +1094,8 @@ func queryGuessByID(gameID string) *gty.ReplyGuessGameInfo {
params
.
FuncName
=
gty
.
FuncNameQueryGameByID
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
ReplyGuessGameInfo
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1108,7 +1110,8 @@ func queryGuessByAddr(addr string) *gty.GuessGameRecords {
params
.
FuncName
=
gty
.
FuncNameQueryGameByAddr
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1123,7 +1126,8 @@ func queryGuessByStatus(status int32) *gty.GuessGameRecords {
params
.
FuncName
=
gty
.
FuncNameQueryGameByStatus
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1138,7 +1142,8 @@ func queryGuessByAdminAddr(addr string) *gty.GuessGameRecords {
params
.
FuncName
=
gty
.
FuncNameQueryGameByAdminAddr
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1154,7 +1159,8 @@ func queryGuessByAddrStatus(addr string, status int32) *gty.GuessGameRecords {
params
.
FuncName
=
gty
.
FuncNameQueryGameByAddrStatus
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1170,7 +1176,8 @@ func queryGuessByAdminAddrStatus(addr string, status int32) *gty.GuessGameRecord
params
.
FuncName
=
gty
.
FuncNameQueryGameByAdminStatus
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
...
...
@@ -1186,7 +1193,8 @@ func queryGuessByCategoryStatus(category string, status int32) *gty.GuessGameRec
params
.
FuncName
=
gty
.
FuncNameQueryGameByCategoryStatus
params
.
Payload
=
types
.
MustPBToJSON
(
req
)
var
res
gty
.
GuessGameRecords
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://"
+
types
.
Conf
(
"config.rpc"
)
.
GStr
(
"jrpcBindAddr"
),
"Chain33.Query"
,
params
,
&
res
)
//ctx := jsonrpc.NewRPCCtx("http://"+types.Conf("config.rpc").GStr("jrpcBindAddr"), "Chain33.Query", params, &res)
ctx
:=
jsonrpc
.
NewRPCCtx
(
"http://127.0.0.1:8801"
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
return
&
res
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment