diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java index baab15e4d7..22a193cf9c 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java @@ -494,8 +494,13 @@ public class ServiceUtils { Map tagsMap = (Map) request.getCombine().get("tags"); Object tagVal = tagsMap.get("value"); if (tagVal != null) { - List tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE)); - tagsMap.put("value", tagList); + if (tagVal instanceof List) { + tagsMap.put("value", tagVal); + } else { + List tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE)); + tagsMap.put("value", tagList); + } + } } }