


Summary of solutions to common problems encountered when developing JS-SDK 6.0.2 on WeChat
This article mainly introduces "WeChat WeChatJS-SDK 6.0.2 Encountered Problems", mainly related to WeChat WeChat JS-SDK 6.0.2 pit filling notes, for WeChat WeChat Students who are interested in filling in the pit notes of JS-SDK 6.0.2 can refer to it.
0. Why can you modify the sharing description and other information without the hassle of configuration in the past, but now it can’t be done.
Because there was no permission verification before version 6.0.2, so the config is all ok , but this does not mean that the signature in your config is OK. Please check whether the correct signature is generated in 6.0.2 to ensure that the config is OK in higher versions.
So now you need to configure the correct signature wx.config
1. Log in to the WeChat backend (mp.weixin.qq.com)-->Basic configuration
Get AppID,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. Get other required items in wx.config --> signature
4.1 Reference document: nonceStr can be customized, time stamp takes the current timestamp, and the url requires the complete address.
http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign
5 .config reports an error
5.1 "invalid url domain" You need to confirm that the domain name has been bound --> fill in "JS" in the "Function Settings" of "Official Account Settings" InterfaceSecurityDomain Name". (The file is overwritten to the project root directory)
5.2 "invalid signature" For details, please refer to Appendix 5
6. Sample code
/personal/invite. html or official please see Appendix 6
Attached is the official js-sdk documentation
http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
Thanks for reading, I hope this helps everyone, and thank you for your support of this site!
The above is the detailed content of Summary of solutions to common problems encountered when developing JS-SDK 6.0.2 on WeChat. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
