This article mainly introduces relevant information on WeChat development and detailed explanation of WeChat authorization. Friends who need it can refer to it
I recently had the opportunity to do a WeChat project; share the notes I compiled with Everyone, please correct me if there are any shortcomings or mistakes!
1The flow chart for WeChat authorization is as follows
Some code fragments are for reference only:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Use of local storage:
1 2 3 4 5 6 7 8 9 10 |
|
1. For WeChat development, it is recommended to create some data first. Get the corresponding openId to facilitate debugging in the browser;
2. The slightly troublesome thing is that every time the adjustment is completed, it needs to be published to the service, otherwise it will have no effect. . . This lz was very hurt at the beginning. If it is something that is online, everyone knows it. You'd better agree with the customer and adjust it tonight
Thanks for reading, I hope it can help everyone, thank you everyone Support this site!
The above is the detailed content of WeChat Development-WeChat Authorization Issues. For more information, please follow other related articles on the PHP Chinese website!