We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题:SecretId是传了的,但还是提示missing param SecretId 解决:在cos.js文件中修改89行代码Credentials的判断条件
源代码: if (this.options.Credentials) { this.options.SecretId = this.options.Credentials.secretId || ''; this.options.SecretKey = this.options.Credentials.secretKey || '';
if (this.options.Credentials) {
this.options.SecretId = this.options.Credentials.secretId || '';
this.options.SecretKey = this.options.Credentials.secretKey || '';
修改后的代码: this.options.Credentials是一个对象,if中是永远成立的,就需要对secretId,secretKey进行单独判断 if (this.options.Credentials.secretId && this.options.Credentials.secretKey) { this.options.SecretId = this.options.Credentials.secretId || ''; this.options.SecretKey = this.options.Credentials.secretKey || ''; }
if (this.options.Credentials.secretId && this.options.Credentials.secretKey) {
}
The text was updated successfully, but these errors were encountered:
辛苦更新到最新版2.11.18 这里已经修复 感谢反馈~
Sorry, something went wrong.
No branches or pull requests
问题:SecretId是传了的,但还是提示missing param SecretId
解决:在cos.js文件中修改89行代码Credentials的判断条件
源代码:
if (this.options.Credentials) {
this.options.SecretId = this.options.Credentials.secretId || '';
this.options.SecretKey = this.options.Credentials.secretKey || '';
修改后的代码: this.options.Credentials是一个对象,if中是永远成立的,就需要对secretId,secretKey进行单独判断
if (this.options.Credentials.secretId && this.options.Credentials.secretKey) {
this.options.SecretId = this.options.Credentials.secretId || '';
this.options.SecretKey = this.options.Credentials.secretKey || '';
}
The text was updated successfully, but these errors were encountered: