正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -467,6 +467,9 @@ if (!function_exists('getImageUrl')) { | @@ -467,6 +467,9 @@ if (!function_exists('getImageUrl')) { | ||
| 467 | if((strpos($path,'https://')!== false) || (strpos($path,'http://') !== false)){ | 467 | if((strpos($path,'https://')!== false) || (strpos($path,'http://') !== false)){ |
| 468 | return $path; | 468 | return $path; |
| 469 | } | 469 | } |
| 470 | + if(substr($path,0,2) == '//'){ | ||
| 471 | + return 'https:'.$path; | ||
| 472 | + } | ||
| 470 | if($location == 1){ | 473 | if($location == 1){ |
| 471 | $cos = config('filesystems.disks.cos'); | 474 | $cos = config('filesystems.disks.cos'); |
| 472 | $cosCdn = $cos['cdn']; | 475 | $cosCdn = $cos['cdn']; |
-
请 注册 或 登录 后发表评论