From 14d80e0f6f946e3063495b954cebffe9642f3f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 9 Feb 2023 18:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=A6=E5=8F=91=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime.go | 2 ++ 1 file changed, 2 insertions(+) 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) }