Summary WeChat development JS-SDK6.0.2 often encountered problems and solutions

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.