javascript - WeChat jssdk injection configuration prompt config:invalid signature
怪我咯
怪我咯 2017-05-17 10:01:10
0
1
655

1. Use official tools to verify that the generated signature is the same as the locally generated one
2. The signature verification parameters are as follows

jsapi_ticket=kgt8ON7yVITDhtdwci0qeUuDxVJKkgZkFJlE6KZnn99cSxwaX6OZ5bxIErg67Kv2Frijk5EdgdNlsbPf3MfYVQ&noncestr=cc3252f0-b536-4bcc-9628-3767ac0ca9b9&timestamp=1494312064&url=http://localhost:8080/OneCarMgr/am/getWxConfig

3. The official api says that the current page URL is used. This is a bit unclear. The background is obtained using request.getRequestURL().toString()

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
大家讲道理
localhost:8080

This is a test environment at first glance,使用当前页面的URL是指:
如果你的网站http://www.mysite.com在接入微信jssdk, 需要在 http://www.mysite.com/huodong.html这个页面调用微信的jssdk来分享这个页面。那么“当前页面url”就是http://www.mysite.com/huodong.html,即url=http://www.mysite.com/huodong.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template