正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -594,12 +594,12 @@ if (!function_exists('getFileUrl')) { | @@ -594,12 +594,12 @@ if (!function_exists('getFileUrl')) { | ||
| 594 | if(substr($path,0,2) == '//'){ | 594 | if(substr($path,0,2) == '//'){ |
| 595 | return 'https:'.$path; | 595 | return 'https:'.$path; |
| 596 | } | 596 | } |
| 597 | - $file_type = pathinfo($path, PATHINFO_EXTENSION); | ||
| 598 | - $fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx']; | ||
| 599 | - if(in_array(strtolower($file_type),$fileTypeArr)){ | ||
| 600 | - $cdn2 = config('filesystems.disks.cos')['cdn2']; | ||
| 601 | - return $cdn2.$path; | ||
| 602 | - } | 597 | +// $file_type = pathinfo($path, PATHINFO_EXTENSION); |
| 598 | +// $fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx']; | ||
| 599 | +// if(in_array(strtolower($file_type),$fileTypeArr)){ | ||
| 600 | +// $cdn2 = config('filesystems.disks.cos')['cdn2']; | ||
| 601 | +// return $cdn2.$path; | ||
| 602 | +// } | ||
| 603 | if($location == 0){ | 603 | if($location == 0){ |
| 604 | //v6-file.globalso.com | 604 | //v6-file.globalso.com |
| 605 | $cos = config('filesystems.disks.cos'); | 605 | $cos = config('filesystems.disks.cos'); |
-
请 注册 或 登录 后发表评论