|
@@ -13,10 +13,10 @@
|
|
|
// yourRegion填写Bucket所在地域。以华东1(杭州)为例,yourRegion填写为oss-cn-hangzhou。
|
|
|
region: "oss-cn-chengdu",
|
|
|
// 从STS服务获取的临时访问密钥(AccessKey ID和AccessKey Secret)。
|
|
|
- accessKeyId: "STS.NTkTKPpiTB1NVdV7wEQH3wkD4",
|
|
|
- accessKeySecret: "HT3aNHuN5EKYieU8ECZCpRh98GwJLz4dchpLtAEdTmUi",
|
|
|
+ accessKeyId: "STS.NV7VPCCHGfMPG5xFpdNLRQ8xY",
|
|
|
+ accessKeySecret: "CJ4AeVxAfu7YZcynYAuG5neeoqYpx4TZJafNp3U8NoJ6",
|
|
|
// 从STS服务获取的安全令牌(SecurityToken)。
|
|
|
- stsToken: "CAIS9AF1q6Ft5B2yfSjIr5feH/HknbZ19fOlVELn03cQXccfmK7v1jz2IHhMfHdoCeAet/s0lGpY5vYflqZ5Qp5eRVHFbdY155hS8AX5gX99Qw/sv9I+k5SANTW5KXyShb3/AYjQSNfaZY3eCTTtnTNyxr3XbCirW0ffX7SClZ9gaKZ8PGD6F00kYu1bPQx/ssQXGGLMPPK2SH7Qj3HXEVBjt3gX6wo9y9zmm53Du0uD1QWhmr5K9tSsGPX+MZkwZqUYesyuwel7epDG1CNt8BVQ/M909vccoW+Z5oHNWwAOuEXcY7qEr8cBNgZ8YbMhC0f/YkEOchsSGoABsc0y6cqEzBt1pRDRz1781lA4wOlFriMIqNN+raBhapzZ+uGd647DJFpnpm6GqXbY8gWD2EJ4k9eGYEuK7e4kFkCJH6+UUjyT4OVJPKJCUIjZaeJE86TbzcR3a6tw6yuOsV8Knk0r7vc2ngArFBn51XPm3wUKsYn8ZH5rhCDDv24gAA==",
|
|
|
+ stsToken: "CAIS9AF1q6Ft5B2yfSjIr5WCHer3rpdm0Y+7RRPJonAxQsN+vv3Tuzz2IHhMfHdoCeAet/s0lGpY5vYflqZ5Qp5eRVHFbdY155hS8AX54hJsaA/sv9I+k5SANTW5KXyShb3/AYjQSNfaZY3eCTTtnTNyxr3XbCirW0ffX7SClZ9gaKZ8PGD6F00kYu1bPQx/ssQXGGLMPPK2SH7Qj3HXEVBjt3gX6wo9y9zmm53Du0uD1QWhmr5K9tSsGPX+MZkwZqUYesyuwel7epDG1CNt8BVQ/M909vccoW+Z5oHNWwAOuEXcY7qEr8cBNgZ8YbMhC0f/YkEOchsSGoABRXbZO3Bad6G/sxHKOwwOZRHsBlPNeKHc++JKUqsjtgDZ/SO67Z5dDjmCjVQ1fHN3Qme7vpvcJioxBE+ZbfovIrBLVvnP6UpktNg4h1FYLqj6ePdbGFtKhAbXTy6sWw4ed0bX/xiTQXx7jR0njhl9IaCgvxRWzDGrwmGn5ac84HEgAA==",
|
|
|
// 填写Bucket名称。
|
|
|
bucket: "baishuihu",
|
|
|
});
|
|
@@ -40,7 +40,7 @@
|
|
|
mime: "json",
|
|
|
headers: { "Content-Type": "text/plain" },
|
|
|
};
|
|
|
- const result = await client.put("ACC/aaaa.png", data, options);
|
|
|
+ const result = await client.put("images/test.png", data, options);
|
|
|
console.log(result);
|
|
|
} catch (e) {
|
|
|
console.log(e);
|