fix(测试跟踪): 当禅道缺陷数量是50的倍数时,企业版同步缺陷死循环
--bug=1013707 --user=陈建星 【测试跟踪】github #14185禅道创建的bug 包含图片 同步到ms ,在ms编辑缺陷内容,点击保存保存失败 https://www.tapd.cn/55049933/s/1170855
This commit is contained in:
parent
9e0472831b
commit
de8641652a
|
@ -153,12 +153,12 @@ public abstract class ZentaoClient extends BaseClient {
|
||||||
return JSONObject.parseObject(response.getBody()).getJSONObject("data").getInnerMap();
|
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();
|
String sessionId = login();
|
||||||
ResponseEntity<String> response = restTemplate.exchange(requestUrl.getBugList(),
|
ResponseEntity<String> response = restTemplate.exchange(requestUrl.getBugList(),
|
||||||
HttpMethod.GET, null, String.class, projectId, 9999999, pageSize, pageNum, sessionId);
|
HttpMethod.GET, null, String.class, projectId, 9999999, pageSize, pageNum, sessionId);
|
||||||
try {
|
try {
|
||||||
return JSONObject.parseObject(response.getBody()).getJSONObject("data").getJSONArray("bugs");
|
return JSONObject.parseObject(response.getBody()).getJSONObject("data");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtil.error(e);
|
LogUtil.error(e);
|
||||||
MSException.throwException("请检查配置信息是否填写正确!");
|
MSException.throwException("请检查配置信息是否填写正确!");
|
||||||
|
|
Loading…
Reference in New Issue