feat(制品库功能开发): 产品库支持Docker制品移入功能开发

修复Nexus响应异常导致无法正常识别错误码的问题
This commit is contained in:
OTTO 2024-08-12 16:34:02 +08:00
parent 4db43bdc6c
commit 12aa288f29
1 changed files with 7 additions and 0 deletions

View File

@ -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));
}