Commit 94ee1ec3 authored by 邢磊's avatar 邢磊

*)修改报错

parent aa745275
......@@ -597,8 +597,12 @@ public class DPSubServiceImpl {
((JSONArray)value).stream().forEach(y -> {
JSONObject yObj = (JSONObject) y;
String[] str = yObj.getString("url").split("\\.");
String icon = MatinfoEnum.getIconUrl(str[1]).getIcon();
yObj.put("thumb", ValidationUtil.isEmpty(icon) ? yObj.getString("url") : icon);
if (ValidationUtil.isEmpty(str)){
yObj.put("thumb", yObj.getString("url"));
} else {
String icon = MatinfoEnum.getIconUrl(str[1]).getIcon();
yObj.put("thumb", ValidationUtil.isEmpty(icon) ? yObj.getString("url") : icon);
}
});
attachmentUploadDatasObj.put("value", value);
String accept = visualParams.getString("accept");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment