wx-jssdk-configsign
v1.2.2
Published
> ticket 的获取参照微信公众号开发文档进行生成
Downloads
1
Readme
简介
ticket 的获取参照微信公众号开发文档进行生成
- https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62
const wxJssdkConfigSign = require('wx-jssdk-configsign')
let ticket = '';
let url = '';
let appid = '';
let signData = wxJssdkConfigSign({ticket, url, appid});
signData 数据格式
{
jsapi_ticket: 'HoagFKDcsGMVCIY2vOjf9hUCtGD_2DjALItWSH3d5SAp_q3tn3yfAuTRD_gYlpM5LbHcaVt-bxIBB_SDpNhlyg',
nonceStr: 'aiy7wi1c4yc',
timestamp: '1681286775',
url: 'https://api.52kfw.cn/api/v1/wechat/buy',
signature: '079e76ad17fca1100aff956ddf677543b2192fae',
appId: 'wx48ed79bdfe980135'
}