作者 刘锟

update

@@ -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