浏览代码

修改预览的默认模式

sandm 2 年之前
父节点
当前提交
e6f1842ca2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/common.php

+ 1 - 1
app/common.php

@@ -291,7 +291,7 @@ function getStoragePath($path) {
 
 function getFileView($path) {
     //$complete_path = "https://report.jinjianghc.com/" . getStoragePath($path);
-    return "https://fileview.jinjianghc.com/onlinePreview?url=" . base64_encode($path);
+    return "https://fileview.jinjianghc.com/onlinePreview?url=" . base64_encode($path) . "&officePreviewType=pdf";
 }
 
 function isImage($filename) {