多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要描述:** - **请求URL:** - ` api/we_chat/jsconfig ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |url |必填 |varchar |前端当前url | **返回示例** ``` { "code": 1, "msg": "获取成功", "data": { "config": { "debug": true, "beta": false, "jsApiList": [ "onMenuShareTimeline", "onMenuShareWeibo", "openLocation", "getLocation", "chooseWXPay", "updateTimelineShareData" ], "appId": "wx9d4……", "nonceStr": "Ge8wD……", "timestamp": 1592707100, "url": "http:\/\/dragon.yixiang……", "signature": "8421cfbc……" } }, "show": 0, "time": "0.517942" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |appId |string |appid,公众号的唯一标识 |timestamp |int |生成签名的时间戳 |nonceStr |string |生成签名的随机串 |signature |string |签名 |jsApiList |array |需要使用的JS接口列表 **备注** - allow_share: 传入1时,则返回允许分享到朋友圈的配置