wesmiler 6 лет назад
Родитель
Сommit
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);
         }