1
调用企业微信扫一扫功能的api,出现wx.config配置参数出现报错let url = window.location.href let params = {url: url} getCofing(params).then(res => { wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来 appId: res.data.appId, //必填,企业微信的appId timestamp: res.data.timestamp, // 必填,生成签名的时间戳 nonceStr: res.data.noncestr, // 必填,生成签名的随机串 signature: res.data.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法 jsApiList: ['scanQRCode'] // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来 }) }) wx.error(function (res) { alert('出错了:' + res.errMsg) //这个地方的好处就是wx.config配置错误,会弹出窗口哪里错误,然后根据微信文档查询即可 }) 出现报错信息: scanQRCode:invalid signature more info at http://open.work.weixin.qq.com/devtool/query?e=40093 maybe not added to jsapilist in wx:config [图片] 查询出来的错误文档信息是: [图片] 因此jsapi和url地址参数不知道什么样情况才是正确的,怎么排查?
2021-01-12你好,对接企业微信的api 出现这个报错是什么情况?scanQRCode:invalid signature more info at http://open.work.weixin.qq.com/devtool/query?e=40093 maybe not added to jsapilist in wx:config
企业微信第三方应用 登录报错获取token后 企业微信授权登陆 接收code后 invalid suite_acccess_token or provider_access_token, hint: [1597134095_59_af83d27d6cc7fb84b976457dc563d669], more info at https://open.work.weixin.qq.com/devtool/query?e=40082
2021-01-12