作者 刘锟

update

... ... @@ -696,6 +696,9 @@ class ProjectUpdate extends Command
) {
$source = CollectSource::where('project_id', $project_id)->where('origin', $url)->first();
if (!$source) {
if (empty($scheme) && empty($host) && substr($path, 0, 1) != '/') {
$path = '/' . $path;
}
$url_complete = ($scheme ?: 'https') . '://' . $domain . $path;
$new_url = CosService::uploadRemote($project_id, 'image_product', $url_complete);
... ...