Open nick3108qqcom opened 6 years ago
var cos = new COS({
getAuthorization: function (options, callback) {
http.http(api.api.getImageSign, 'POST', {}).then(res => {
var secretInfo = res.content;
console.log(secretInfo)
callback({
SecretId: secretInfo.tmpSecretId,
SecretKey: secretInfo.tmpSecretKey,
XCosSecurityToken: secretInfo.sessionToken,
ExpiredTime: secretInfo.expiredTime,
});
})
},
})
按照官网的例子写的,但是在sdk中并没有接受到SecretId