From f013e2e631c339e6221ead0f056845b9f8e4e69e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 1 Jun 2022 12:05:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=BD=93=E7=A6=85=E9=81=93=E7=BC=BA=E9=99=B7=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E6=98=AF50=E7=9A=84=E5=80=8D=E6=95=B0=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=89=88=E5=90=8C=E6=AD=A5=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013707 --user=陈建星 【测试跟踪】github #14185禅道创建的bug 包含图片 同步到ms ,在ms编辑缺陷内容,点击保存保存失败 https://www.tapd.cn/55049933/s/1170855 --- .../java/io/metersphere/track/issue/client/ZentaoClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/issue/client/ZentaoClient.java b/backend/src/main/java/io/metersphere/track/issue/client/ZentaoClient.java index 5345181014..0bc39c248b 100644 --- a/backend/src/main/java/io/metersphere/track/issue/client/ZentaoClient.java +++ b/backend/src/main/java/io/metersphere/track/issue/client/ZentaoClient.java @@ -153,12 +153,12 @@ public abstract class ZentaoClient extends BaseClient { return JSONObject.parseObject(response.getBody()).getJSONObject("data").getInnerMap(); } - public JSONArray getBugsByProjectId(String projectId, int pageNum, int pageSize) { + public JSONObject getBugsByProjectId(String projectId, int pageNum, int pageSize) { String sessionId = login(); ResponseEntity response = restTemplate.exchange(requestUrl.getBugList(), HttpMethod.GET, null, String.class, projectId, 9999999, pageSize, pageNum, sessionId); try { - return JSONObject.parseObject(response.getBody()).getJSONObject("data").getJSONArray("bugs"); + return JSONObject.parseObject(response.getBody()).getJSONObject("data"); } catch (Exception e) { LogUtil.error(e); MSException.throwException("请检查配置信息是否填写正确!");