This commit is contained in:
2025-10-11 01:01:36 +08:00
parent dbf326e751
commit b258a81bb8
4 changed files with 20 additions and 13 deletions

View File

@@ -108,6 +108,11 @@ func (s *handler) register(namespace string, r interface{}) {
for i := 0; i < val.NumMethod(); i++ {
method := val.Type().Method(i)
//fmt.Println("method: %s", method.Name)
if method.Name != "KickPerson" && method.Name != "QuitSelf" {
continue
}
funcType := method.Func.Type()
hasCtx := 0