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×tamp=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()
大家讲道理2017-05-17 10:03:10
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