fix(测试跟踪): 当禅道缺陷数量是50的倍数时,企业版同步缺陷死循环

--bug=1013707 --user=陈建星 【测试跟踪】github #14185禅道创建的bug 包含图片 同步到ms ,在ms编辑缺陷内容,点击保存保存失败 https://www.tapd.cn/55049933/s/1170855
This commit is contained in:
chenjianxing 2022-06-01 12:05:41 +08:00 committed by f2c-ci-robot[bot]
parent 9e0472831b
commit de8641652a
1 changed files with 2 additions and 2 deletions

View File

@ -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<String> 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("请检查配置信息是否填写正确!");