Procházet zdrojové kódy

修改预览的默认模式

sandm před 2 roky
rodič
revize
e6f1842ca2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {