|
|
|
@ -39,7 +39,7 @@ class OssService {
|
|
|
|
|
'status' => true,
|
|
|
|
|
'message' => '上传OSS成功',
|
|
|
|
|
'data' => [
|
|
|
|
|
'url' => $this->getUrl()
|
|
|
|
|
'url' => $this->getUrl($saveFileName)
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
} catch (OssException $e) {
|
|
|
|
@ -92,7 +92,7 @@ class OssService {
|
|
|
|
|
/**
|
|
|
|
|
* step 3. 完成上传
|
|
|
|
|
*/
|
|
|
|
|
$this->client->completeMultipartUpload($this->bucket, $url, $uploadId, $uploadParts);
|
|
|
|
|
$this->client->completeMultipartUpload($this->bucket, $saveFileName, $uploadId, $uploadParts);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -118,5 +118,6 @@ class OssService {
|
|
|
|
|
if (!empty($this->bdDomain) && strlen($this->bdDomain) > 5) {
|
|
|
|
|
$url = $this->bdDomain . $saveFileName;
|
|
|
|
|
}
|
|
|
|
|
return $url;
|
|
|
|
|
}
|
|
|
|
|
}
|