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