Skip to content

Commit e5c4618

Browse files
committed
chore(openapi): update default param for signature
1 parent 6f70f8d commit e5c4618

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/tsw/util/openapi.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const crypto = require('crypto');
1818
* @param {string} opt.appkey 应用appkey
1919
* @return {string} sig 签名结果
2020
*/
21-
this.signature = opt => {
22-
opt = opt || {};
21+
this.signature = (opt = {}) => {
2322

2423
const queryArray = [];
2524

0 commit comments

Comments
 (0)