@be-link/cos 1.12.5 → 1.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/upload.js +4 -2
- package/package.json +1 -1
package/bin/upload.js
CHANGED
|
@@ -62,7 +62,9 @@ async function getTempCredentials(mode) {
|
|
|
62
62
|
|
|
63
63
|
try {
|
|
64
64
|
const response = await fetch(url, { method: 'POST' });
|
|
65
|
+
console.log('🔐 响应:', response);
|
|
65
66
|
const result = await response.json();
|
|
67
|
+
console.log('🔐 结果:', result);
|
|
66
68
|
const data = result?.data || {};
|
|
67
69
|
const credentials = data?.credentials;
|
|
68
70
|
|
|
@@ -129,8 +131,8 @@ async function initCOS() {
|
|
|
129
131
|
|
|
130
132
|
console.log('✅ 使用环境变量中的密钥');
|
|
131
133
|
cos = new COS({
|
|
132
|
-
SecretId:
|
|
133
|
-
SecretKey:
|
|
134
|
+
SecretId: 'AKIDx3wfJo5e4FAqHSOJ5cu2y3zh9MK2Uhy6',
|
|
135
|
+
SecretKey: '3sgW7V7W1PZWIqAKI8krpY3JL9j5C3e1',
|
|
134
136
|
});
|
|
135
137
|
|
|
136
138
|
return cos;
|