search

Home  >  Q&A  >  body text

javascript - WeChat jssdk injection configuration prompt config:invalid signature

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()

怪我咯怪我咯2775 days ago669

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理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

    reply
    0
  • Cancelreply