作者 刘锟

update

... ... @@ -224,6 +224,7 @@ class HtmlCollect extends Command
$scheme = $arr['scheme'] ?? '';
$host = $arr['host'] ?? '';
$path = $arr['path'] ?? '';
$query = $arr['query'] ?? '';
if (
(strpos($host, '.globalso.') === false) &&
... ... @@ -236,7 +237,7 @@ class HtmlCollect extends Command
return [
'download' => true,
'url' => $url,
'url_complete' => ($scheme ?: 'https') . '://' . ($host ?: $domain) . $path
'url_complete' => ($scheme ?: 'https') . '://' . ($host ?: $domain) . $path . ($query ? '?' . $query : '')
];
} else {
return [
... ...
... ... @@ -224,6 +224,7 @@ class HtmlLanguageCollect extends Command
$scheme = $arr['scheme'] ?? '';
$host = $arr['host'] ?? '';
$path = $arr['path'] ?? '';
$query = $arr['query'] ?? '';
if (
(strpos($host, '.globalso.') === false) &&
... ... @@ -236,7 +237,7 @@ class HtmlLanguageCollect extends Command
return [
'download' => true,
'url' => $url,
'url_complete' => ($scheme ?: 'https') . '://' . ($host ?: $domain) . $path
'url_complete' => ($scheme ?: 'https') . '://' . ($host ?: $domain) . $path . ($query ? '?' . $query : '')
];
} else {
return [
... ...
... ... @@ -76,7 +76,8 @@ class CosService
public static function uploadRemote($project_id,$image_type,$file_url,$key='')
{
if(!$key){
$ext = explode('.',$file_url);
$url_arr = parse_url($file_url);
$ext = explode('.',$url_arr['path']);
$filename = uniqid().rand(10000,99999).'.'.end($ext);
... ...