Przeglądaj źródła

【程序目录】更新5.2

evoxwht 2 lat temu
rodzic
commit
7f4812a9d1

+ 1 - 1
crmeb/app/services/product/product/CopyTaobaoServices.php

@@ -287,7 +287,7 @@ class CopyTaobaoServices extends BaseServices
         } else {
             $ext = $this->getImageExtname($name)['ext_name'];
         }
-        if (in_array($ext, ['php', 'js', 'html'])) {
+        if (!in_array($ext, ['jpg', 'jpeg', 'png', 'gif', 'JPG', 'JPEG', 'PNG', 'GIF'])) {
             throw new AdminException(400558);
         }
         //TODO 获取远程文件所采用的方法