Skip to content

Commit

Permalink
getJsConfig 添加开放标签的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
welchwsy authored and JacksonTian committed Nov 30, 2020
1 parent 6e6efbb commit bd3aa25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/api_js.js
Expand Up @@ -172,7 +172,8 @@ exports.ensureTicket = async function (type) {
* var param = {
* debug: false,
* jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'],
* url: 'http://www.xxx.com'
* url: 'http://www.xxx.com',
* openTagList: [] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
* };
* api.getJsConfig(param);
* ```
Expand All @@ -192,7 +193,8 @@ exports.getJsConfig = async function (param) {
timestamp: timestamp,
nonceStr: nonceStr,
signature: signature,
jsApiList: param.jsApiList
jsApiList: param.jsApiList,
openTagList: param.openTagList || []
};
};

Expand Down

0 comments on commit bd3aa25

Please sign in to comment.