feat(制品库功能开发): 产品库支持Docker制品移入功能开发
修复Nexus响应异常导致无法正常识别错误码的问题
This commit is contained in:
parent
4c112c856a
commit
ee9bda814c
|
|
@ -270,6 +270,13 @@ public class NexusRequestHelper {
|
|||
if (res == null) {
|
||||
return null;
|
||||
}
|
||||
JSONObject resultJson = res.getJSONObject("result");
|
||||
if (resultJson == null) {
|
||||
return null;
|
||||
}
|
||||
if (!resultJson.getBoolean("success")) {
|
||||
return null;
|
||||
}
|
||||
return JSONObject.parseObject(res.toJSONString(), buildType(ownerClass, rawClass));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue