From ec267cf8c9d67339d522fb4e6e378cffd00135eb Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 29 Dec 2021 17:11:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E6=89=A7=E8=A1=8C=E4=BA=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009206 --user=赵勇 [github#8774]API Case执行人错误 https://www.tapd.cn/55049933/s/1088238 --- .../api/service/ApiDefinitionExecResultService.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java index 0847ad6ddb..be365dde21 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -327,10 +327,6 @@ public class ApiDefinitionExecResultService { saveResult.setName(item.getName()); saveResult.setType(type); saveResult.setCreateTime(item.getStartTime()); - if (SessionUtils.getUser() != null) { - saveResult.setUserId(SessionUtils.getUser().getId()); - } - String status = item.isSuccess() ? "success" : "error"; saveResult.setName(editStatus(type, status, saveResult.getCreateTime(), saveResult.getId(), testId)); saveResult.setStatus(status);