图片生成失败问题

This commit is contained in:
446052889@qq.com 2023-09-27 10:04:04 +08:00
parent 629cb9c298
commit 1dd5fa577e
2 changed files with 5 additions and 2 deletions

View File

@ -3932,7 +3932,10 @@ public class PALRepositoryQueryAPIManager {
JSONObject elements = defineObj.getJSONObject("elements");
for (String key : elements.keySet()) {
JSONObject shapeObj = elements.getJSONObject(key);
if (null != shapeObj && shapeObj.containsKey("dataAttributes")) {
if (shapeObj == null || "linker".equals(shapeObj.getString("name"))) {
continue;
}
if (shapeObj.containsKey("dataAttributes")) {
JSONArray dataAttributes = shapeObj.getJSONArray("dataAttributes");
for (int i = 0; i < dataAttributes.size(); i++) {
JSONObject dataAttribute = dataAttributes.getJSONObject(i);
@ -3957,7 +3960,7 @@ public class PALRepositoryQueryAPIManager {
}
}
if (null != shapeObj && shapeObj.containsKey("props")) {
if (shapeObj.containsKey("props")) {
JSONObject props = shapeObj.getJSONObject("props");
if (null == props) {
continue;