Current location - Quotes Website - Personality signature - Wx.config () in the official account H5 of WeChat stepped on the pit.
Wx.config () in the official account H5 of WeChat stepped on the pit.
WeChat official account H5 prompts config:fail, Error: system error code 63002. When configuring WeChat parameters, the signature is invalid, indicating that there is something wrong with the signature. There are many factors that affect the signature, but for the front end, the biggest factor is that url parameters should be given correctly. The url parameter needs to pay attention to two points:

1. Secure domain name configuration of official WeChat account is required.

[wechat official account platform => setting and development = > wechat official account setting => function setting = & gtJS interface security domain name]

Note that you don't need to add /debug/cgi-bin/apiinfo) to get access_token during configuration.

3.get jsapi _ ticket(/CGI-bin/ticket/getticket? Access token = access token & type = jsapi)

4. Use the WeChat JS interface signature verification tool (/debug/cgi-bin/sandbox? T=jsapisign) calculates the signature.

Finally, you can debug the generated signature and other parameters in wx.config ().

JS-SDK description document:/doc/offiaccount/OA _ web _ apps/js-sdk.html.