master
ELF 5 years ago
parent bcc34cbd0c
commit 53e0395674

@ -19,6 +19,7 @@ use BaiduBce\Services\Bos\BosOptions;
use BaiduBce\Auth\SignOptions;
use BaiduBce\Log\LogFactory;
use Think\Think;
use Base\Service\GameSourceService;
/**
* 后台首页控制器

@ -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;
}
}
Loading…
Cancel
Save