wesmiler 6 年之前
父節點
當前提交
0579ca9dbf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vendor/thinkcmf/cmf-app/src/weixin/model/Devices.php

+ 1 - 1
vendor/thinkcmf/cmf-app/src/weixin/model/Devices.php

@@ -139,7 +139,7 @@ class Devices extends Model
         if (in_array($fileType, ['xls', 'xlsx'])) {
             $fileUrl = str_replace('.pdf', '.' . $fileType, $fileUrl);
         }else if(in_array($fileType, ['docx', 'doc'])){
-            $fileUrl = str_replace(['.doc','.docx'], ['.pdf','.pdf'], $fileUrl);
+            $fileUrl = str_replace(['.docx','.doc'], ['.pdf','.pdf'], $fileUrl);
         }