优化文件预览时向预览服务传递的url参数

master
GuoXin 1 year ago
parent de0d51b7ea
commit c923b6b77a
  1. 2
      shandan-system/src/main/java/com/keyware/shandan/system/controller/SysFileController.java

@ -112,7 +112,7 @@ public class SysFileController extends BaseController<SysFileService, SysFile, S
//fileViewUrl = "http://192.168.102.192:8080/bianmu" + file.getWebUri(); //fileViewUrl = "http://192.168.102.192:8080/bianmu" + file.getWebUri();
//downloadUrl = "http://192.168.102.192:8080/bianmu/sys/file/download/" + fileId; //downloadUrl = "http://192.168.102.192:8080/bianmu/sys/file/download/" + fileId;
mav.addObject("fileViewUrl", fileViewUrl); mav.addObject("fileViewUrl", fileViewUrl.replace("\\", "/"));
mav.addObject("downloadUrl", downloadUrl); mav.addObject("downloadUrl", downloadUrl);
mav.addObject("fileData", file); mav.addObject("fileData", file);
mav.addObject("file_inputDate", inputDate); mav.addObject("file_inputDate", inputDate);