2.0版本

This commit is contained in:
陈精华
2019-05-07 10:15:25 +08:00
committed by kl
parent a663e99bcd
commit 3813f75f65
8 changed files with 9 additions and 6 deletions

View File

@ -46,6 +46,7 @@ public class OnlinePreviewController {
public String onlinePreview(String url, Model model, HttpServletRequest req) {
req.setAttribute("fileKey", req.getParameter("fileKey"));
model.addAttribute("officePreviewType", req.getParameter("officePreviewType"));
model.addAttribute("originUrl",req.getRequestURL().toString());
FilePreview filePreview = previewFactory.get(url);
return filePreview.filePreviewHandle(url, model);
}