ZxcZxc123 1 год назад
Родитель
Сommit
9d4b2922ac
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      library/utils/Qiniu.php

+ 1 - 1
library/utils/Qiniu.php

@@ -205,7 +205,7 @@ class Qiniu {
      * @param type $ext 限制后缀名
      * @return boolean
      */
-    public function updateFile($path,$name,$files,$ext = array('jpg','png','gif','webp')) {
+    public function updateFile($path,$name,$files,$ext = array('jpg','png','gif','webp','mp3')) {
         if (empty($files)) {
             $this->error = '没有上传的文件!';
             return false;