Parcourir la source

修改预览的默认模式

sandm il y a 2 ans
Parent
commit
e6f1842ca2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {