wesmiler 6 years ago
parent
commit
0579ca9dbf
1 changed files with 1 additions and 1 deletions
  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'])) {
         if (in_array($fileType, ['xls', 'xlsx'])) {
             $fileUrl = str_replace('.pdf', '.' . $fileType, $fileUrl);
             $fileUrl = str_replace('.pdf', '.' . $fileType, $fileUrl);
         }else if(in_array($fileType, ['docx', 'doc'])){
         }else if(in_array($fileType, ['docx', 'doc'])){
-            $fileUrl = str_replace(['.doc','.docx'], ['.pdf','.pdf'], $fileUrl);
+            $fileUrl = str_replace(['.docx','.doc'], ['.pdf','.pdf'], $fileUrl);
         }
         }