From a34546ff689412607152636ccce477034e7ddeb6 Mon Sep 17 00:00:00 2001 From: boyce Date: Wed, 23 Dec 2020 11:56:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8E=9F=E5=A7=8BRPC?= =?UTF-8?q?=E6=9C=AC=E8=BF=9B=E7=A8=8B=E4=B8=8E=E8=B7=A8=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/rpchandler.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpc/rpchandler.go b/rpc/rpchandler.go index 8191d5e..cb55c2b 100644 --- a/rpc/rpchandler.go +++ b/rpc/rpchandler.go @@ -250,7 +250,12 @@ func (handler *RpcHandler) HandlerRpcRequest(request *RpcRequest) { log.Error(err) return } - v(request.RpcRequestData.GetInParam()) + if request.inputArgs != nil { + v(request.inputArgs.GetRawData()) + }else{ + v(request.RpcRequestData.GetInParam()) + } + return }