diff --git a/runtime.go b/runtime.go index 563f3b7..bc370f6 100644 --- a/runtime.go +++ b/runtime.go @@ -104,6 +104,8 @@ func (r *Runtime) WrapRun(action string, startData map[string]interface{}, logic return } behaviorID := r.StartBehavior(action, startData) + // 执行逻辑 + logic() defer r.FinishBehavior(behaviorID, nil) }