From 997f00b02c332d8e50c7ebff4d118f7a69aab411 Mon Sep 17 00:00:00 2001 From: zhouyl <583641232@qq.com> Date: Tue, 18 Jun 2024 10:46:18 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B5=8B=E8=AF=95=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/FuncCarApiServiceImpl.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java b/tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java index daf5ac9..dc73048 100644 --- a/tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java +++ b/tp-functional/src/main/java/com/inscloudtech/functional/service/impl/FuncCarApiServiceImpl.java @@ -66,14 +66,18 @@ public class FuncCarApiServiceImpl implements IFuncCarApiService { if(collect.containsKey(record.getApiUrl())){ List apis = collect.get(record.getApiUrl()); for (FuncCarApi api : apis) { - if(api.getJsonResult().equals(record.getJsonResult()) && !api.getOperId().equals(record.getOperId())){ - String s = api.getOs() + api.getBrowser() + api.getEquipment() + api.getNetwork(); - if(!flagVal.equals(s)){ - record.setTestResult("接口兼容性测试通过"); - break; - }else { - record.setTestResult("该记录无比对样本"); + if(api.getJsonResult().equals(record.getJsonResult())){ + if(!api.getOperId().equals(record.getOperId())){ + String s = api.getOs() + api.getBrowser() + api.getEquipment() + api.getNetwork(); + if(!flagVal.equals(s)){ + record.setTestResult("接口兼容性测试通过"); + break; + }else { + record.setTestResult("该记录无比对样本"); + } } + }else { + record.setTestResult("接口兼容性测试未通过"); } } }else {