Commit 7e9c761d authored by 李海磊's avatar 李海磊 Committed by vipwzw

Update test-rpc.sh

fix a bug
parent c9d6c95c
...@@ -125,7 +125,7 @@ function CancleGameTx() { ...@@ -125,7 +125,7 @@ function CancleGameTx() {
function QueryGameByStatus() { function QueryGameByStatus() {
local status=$1 local status=$1
local req='"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"QueryGameListByStatusAndAddr","payload":{"status":"${status}","address":""}}]' local req='"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"QueryGameListByStatusAndAddr","payload":{"status":'"${status}"',"address":""}}]'
echo "#request: $req" echo "#request: $req"
resp=$(curl -ksd "{$req}" "${MAIN_HTTP}") resp=$(curl -ksd "{$req}" "${MAIN_HTTP}")
echo "#response: $resp" echo "#response: $resp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment