Skip to content

Commit 057d805

Browse files
committed
timeout增加默认值
1 parent 18f6d3b commit 057d805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qcloud_cos/lib/conf.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exports.API_COS_END_POINT = 'http://web.file.myqcloud.com/files/v1/';
2121

2222
// timeout单位秒
2323
exports.setAppInfo = function(appid, secretId, secretKey, timeout) {
24+
timeout = timeout || 30;
2425
module.exports.APPID = appid;
2526
module.exports.SECRET_ID = secretId;
2627
module.exports.SECRET_KEY = secretKey;

0 commit comments

Comments
 (0)