diff --git a/server/src/main/java/cn/keking/web/controller/IndexController.java b/server/src/main/java/cn/keking/web/controller/IndexController.java index 1c51c9d7..e4370e3e 100644 --- a/server/src/main/java/cn/keking/web/controller/IndexController.java +++ b/server/src/main/java/cn/keking/web/controller/IndexController.java @@ -13,21 +13,23 @@ public class IndexController { @GetMapping( "/index") public String go2Index(){ - return "index"; + return "/main/index"; } @GetMapping( "/record") public String go2Record(){ - return "record"; + return "/main/record"; } - @GetMapping( "/comment") - public String go2Comment(){ - return "comment"; + @GetMapping( "/integrated") + public String go2Integrated(){ + return "/main/integrated"; } @GetMapping( "/") public String root() { - return "redirect:/index"; + return "redirect:/main/index"; } + + } diff --git a/server/src/main/resources/web/comment.ftl b/server/src/main/resources/web/comment.ftl deleted file mode 100644 index fd448d48..00000000 --- a/server/src/main/resources/web/comment.ftl +++ /dev/null @@ -1,94 +0,0 @@ - - - -
- - -
- var url = 'http://127.0.0.1:8080/file/test.txt'; //要预览文件的访问地址
- window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(base64Encode(url)));
-
- var fileUrl =url1+'|'+url2;//多url使用'|'字符隔开
- window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(base64Encode(fileUrl)));
-
+ var url = 'http://127.0.0.1:8080/file/test.txt'; //要预览文件的访问地址
+ window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(base64Encode(url)));
+
+ var originUrl = 'http://127.0.0.1:8080/filedownload?fileId=1'; //要预览文件的访问地址
+ var previewUrl = originUrl + '&fullfilename=test.txt'
+ window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(previewUrl)));
+
+ var url = 'ftp://127.0.0.1/file/test.txt'; //要预览文件的访问地址
+ window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(url)));
+
+ var originUrl = 'ftp://127.0.0.1/file/test.txt'; //要预览文件的访问地址
+ var previewUrl = originUrl + '?ftp.username=xx&ftp.password=xx&ftp.control.encoding=xx';
+ window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(previewUrl)));
+