微信 开发出现 errMsg: "config:invalid signature"

1:主要原因就是 url传参有问题:

 var url=windows.location.href.split('#')[0];

  这里是 js 获取 当前页面,这样子写可以过滤,并且尽量 把url保存成全局变量,以便整个页面使用相同的 url 很重要,url不同有时候会报错。

 

2:所有问题都会出在 

 

初始化获取签名,时间戳,随机字符串  这三个 参数获取上面 ,只要仔细 查找 很好找到原因


 

3:(企业微信开发API官方 链接)

https://open.work.weixin.qq.com/api/doc/90000/90136/90512 






posted on 2021-07-20 15:41  songyinan  阅读(2839)  评论(0编辑  收藏  举报