新增支持RPC函数命名RPCXXX格式

This commit is contained in:
duanhf2012
2023-03-06 15:41:51 +08:00
parent 47dc21aee1
commit aaae63a674

View File

@@ -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
}