// 保存文件
String saveName = ServletActionContext.getServletContext()
.getRealPath(path) + File.separator + uuidName;
ImageUtil.thumbnails(logo[i], new File(saveName), 25);
// 更新特性IconUrl
FriendshipLink friendshipLink = friendshipLinkService.findById(id);
String oldLogoPath = ServletActionContext.getServletContext()
.getRealPath(friendshipLink.getLogoUrl());
File oldLogoFile = new File(oldLogoPath == null ? "" : oldLogoPath);
if (oldLogoFile.exists())
{
oldLogoFile.delete();
}
friendshipLink.setLogoUrl(path + "/" + uuidName);
friendshipLinkService.update(friendshipLink);
}
json.put(DwzAjaxJsonUtil.KEY_NAVTABID, navTabId);
}
else