|
@@ -37,10 +37,10 @@ export const getUploadSign = async (params: any) => {
|
|
|
let tempPostData: any = {}
|
|
|
if (ossType === 'tencent') {
|
|
|
bucket = tencentBucket
|
|
|
- file = 'gyt/' + filename
|
|
|
+ file = 'klx/' + filename
|
|
|
|
|
|
tempPostData = {
|
|
|
- key: 'gyt/' + postData.key
|
|
|
+ key: 'klx/' + postData.key
|
|
|
}
|
|
|
} else {
|
|
|
tempPostData = postData
|
|
@@ -120,7 +120,7 @@ export const onFileUpload = ({
|
|
|
.uploadFile({
|
|
|
Bucket: tencentBucket /* 填写自己的 bucket,必须字段 */,
|
|
|
Region: 'ap-nanjing' /* 存储桶所在地域,必须字段 */,
|
|
|
- Key: `gyt/${data.name}`,
|
|
|
+ Key: `klx/${data.name}`,
|
|
|
/* 存储在桶里的对象键(例如:1.jpg,a/b/test.txt,图片.jpg)支持中文,必须字段 */
|
|
|
Body: data.file.file, // 上传文件对象
|
|
|
SliceSize:
|
|
@@ -207,13 +207,13 @@ export const onOnlyFileUpload = async (action: string, params: any) => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- // http://daya-online-1303457149.cos.ap-nanjing.myqcloud.com/gyt
|
|
|
- // http://daya-online-1303457149.cos.ap-nanjing.myqcloud.com/gyt
|
|
|
+ // http://daya-online-1303457149.cos.ap-nanjing.myqcloud.com/klx
|
|
|
+ // http://daya-online-1303457149.cos.ap-nanjing.myqcloud.com/klx
|
|
|
await cos
|
|
|
.uploadFile({
|
|
|
Bucket: tencentBucket /* 填写自己的 bucket,必须字段 */,
|
|
|
Region: 'ap-nanjing' /* 存储桶所在地域,必须字段 */,
|
|
|
- Key: `gyt/${params.name}`,
|
|
|
+ Key: `klx/${params.name}`,
|
|
|
/* 存储在桶里的对象键(例如:1.jpg,a/b/test.txt,图片.jpg)支持中文,必须字段 */
|
|
|
Body: params.file, // 上传文件对象
|
|
|
SliceSize:
|