From 1a110c244e72b30d296346dca623faa648392290 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Thu, 18 Aug 2022 17:20:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E8=AE=A1=E7=AE=97=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/service/ApiScenarioReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java index 4b01291669..cd2b3b4865 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java @@ -890,7 +890,7 @@ public class ApiScenarioReportService { StringUtils.isNotEmpty(requestResult.getResponseResult().getHeaders()) && JSONArray.parseArray(requestResult.getResponseResult().getHeaders()).stream().filter( r -> ((JSONObject) r).containsKey("success") && !((JSONObject) r).getBoolean("success") - ).anyMatch()) + ).count() > 0) .count(); } catch (Exception e) { // UI 返回的结果在 headers 里面,格式不符合规范的直接认定结果为失败