正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -696,6 +696,9 @@ class ProjectUpdate extends Command | @@ -696,6 +696,9 @@ class ProjectUpdate extends Command | ||
| 696 | ) { | 696 | ) { |
| 697 | $source = CollectSource::where('project_id', $project_id)->where('origin', $url)->first(); | 697 | $source = CollectSource::where('project_id', $project_id)->where('origin', $url)->first(); |
| 698 | if (!$source) { | 698 | if (!$source) { |
| 699 | + if (empty($scheme) && empty($host) && substr($path, 0, 1) != '/') { | ||
| 700 | + $path = '/' . $path; | ||
| 701 | + } | ||
| 699 | $url_complete = ($scheme ?: 'https') . '://' . $domain . $path; | 702 | $url_complete = ($scheme ?: 'https') . '://' . $domain . $path; |
| 700 | $new_url = CosService::uploadRemote($project_id, 'image_product', $url_complete); | 703 | $new_url = CosService::uploadRemote($project_id, 'image_product', $url_complete); |
| 701 | 704 |
-
请 注册 或 登录 后发表评论