refactor(prompt): 重构提示词构建服务和回调处理

This commit is contained in:
2026-06-05 11:00:04 +08:00
parent aae46a4f29
commit 9049e0d2e8

View File

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