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) {