mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
新增支持RPC函数命名RPCXXX格式
This commit is contained in:
@@ -138,7 +138,7 @@ func (handler *RpcHandler) isExportedOrBuiltinType(t reflect.Type) bool {
|
|||||||
|
|
||||||
func (handler *RpcHandler) suitableMethods(method reflect.Method) error {
|
func (handler *RpcHandler) suitableMethods(method reflect.Method) error {
|
||||||
//只有RPC_开头的才能被调用
|
//只有RPC_开头的才能被调用
|
||||||
if strings.Index(method.Name, "RPC_") != 0 {
|
if strings.Index(method.Name, "RPC_") != 0 && strings.Index(method.Name, "RPC") != 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user