From aaae63a674f1b2a9955a6b5ad1c427dee22965d6 Mon Sep 17 00:00:00 2001 From: duanhf2012 <6549168@qq.com> Date: Mon, 6 Mar 2023 15:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E6=8C=81RPC?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=91=BD=E5=90=8DRPCXXX=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/rpchandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/rpchandler.go b/rpc/rpchandler.go index 7e4c19d..2aefb76 100644 --- a/rpc/rpchandler.go +++ b/rpc/rpchandler.go @@ -138,7 +138,7 @@ func (handler *RpcHandler) isExportedOrBuiltinType(t reflect.Type) bool { func (handler *RpcHandler) suitableMethods(method reflect.Method) error { //只有RPC_开头的才能被调用 - if strings.Index(method.Name, "RPC_") != 0 { + if strings.Index(method.Name, "RPC_") != 0 && strings.Index(method.Name, "RPC") != 0 { return nil }