This article mainly introduces the problems encountered in the JS-SDK6.0.2 & quot;, mainly involves the content of the JS-SDK6.0.2 pit notes, for the students interested in the JS-SDK6.0.2 pit notes can refer. This article mainly introduces the "JS-SDK 6.0.2 encountered problems", mainly involves the JS-SDK 6.0.2 filling notes content, for JS-SDK 6.0.2 filling notes interested in students can refer to it.
0. Why can I modify the shared description and other information without configuration trouble.
Because no permission verification is performed before Version 6.0.2, config is OK, but this does not mean that the signature in your config is OK, verify that the correct signature is generated in 6.0.2 to ensure that config is also OK in the high version.
So now you need to configure the correct signature wx. config
1. log on to the background (mp.weixin.qq.com) --> basic configuration
Obtain AppID and AppSecret
2. get access_token
Https://api.weixin.qq.com/cgi-bin/token? Grant_type = client_credential & appid = APPID & secret = APPSECRET
3. get ticket
Https://api.weixin.qq.com/cgi-bin/ticket/getticket? Access_token = & type = jsapi
4. obtain other required items of wx. config --> signature
4.1 Reference Document: nonceStr can be customized. the timestamp takes the current timestamp, and the url needs the complete address.
Http://mp.weixin.qq.com/debug/cgi-bin/sandbox? T = jsapisign
5. if config is incorrect
5.1 "invalid url domain" you need to confirm that the domain name has been bound --> enter "JS interface security domain name" in "function settings" of "public Account Settings ". (The file overwrites the Project root directory)
5.2 for details about "invalid signature", refer to Appendix 5.
6. Sample code
/Personal/invite.html or the official website can be found in Appendix 6.
Appendix official js-sdk instructions
Http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
Thank you for reading this article. I hope it will help you. thank you for your support for this site!
The above is the summary of the development of JS-SDK 6.0.2 often encounter problems to solve the detailed content of the method, more please pay attention to php Chinese network Other related articles!