From 9049e0d2e8538fd086197cdaa95aa92092c999e5 Mon Sep 17 00:00:00 2001 From: WangLiZhao <1838393649@qq.com> Date: Fri, 5 Jun 2026 11:00:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor(prompt):=20=E9=87=8D=E6=9E=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=8D=E6=9E=84=E5=BB=BA=E6=9C=8D=E5=8A=A1=E5=92=8C?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/util/mapping.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/util/mapping.go b/common/util/mapping.go index 7d1d410..a709b8b 100644 --- a/common/util/mapping.go +++ b/common/util/mapping.go @@ -234,9 +234,11 @@ func PullTaskResult(ctx context.Context, body map[string]any, queryConfig map[st } func matchStatus(actual string, expected any) bool { + expectedStr := gconv.String(expected) + if actual == expectedStr { + return true + } switch v := expected.(type) { - case string: - return actual == v case []any: for _, item := range v { if actual == gconv.String(item) {