diff --git a/base/gdb/event.go b/base/gdb/event.go index 45820389..8fee16b6 100644 --- a/base/gdb/event.go +++ b/base/gdb/event.go @@ -20,7 +20,6 @@ func init() { mdb.ZoneInsert(m, m.OptionSimple(EVENT, ice.CMD)) }}, HAPPEN: {Name: "happen event", Help: "触发", Hand: func(m *ice.Message, arg ...string) { - m.Debug(m.FormatChain()) defer m.Cost() m.OptionCB(mdb.SELECT, "") mdb.ZoneSelect(m.Spawn(ice.OptionFields("")), m.Option(EVENT)).Tables(func(value ice.Maps) { @@ -60,11 +59,5 @@ func Event(m *ice.Message, key string, arg ...ice.Any) *ice.Message { } func EventDeferEvent(m *ice.Message, key string, arg ...ice.Any) func(string, ...ice.Any) { Event(m, key, arg...) - return func(key string, args ...ice.Any) { - if len(args) > 0 { - Event(m, key, args) - } else { - Event(m, key, arg) - } - } + return func(key string, args ...ice.Any) { Event(m, key, args...) } } diff --git a/base/web/dream.go b/base/web/dream.go index b4da31de..bc74d8fd 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -128,7 +128,6 @@ func init() { } }}, DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) { - m.Debug(m.FormatChain()) switch m.Option(mdb.TYPE) { case SERVER, WORKER: m.PushButton(OPEN)