Detailed explanation of wechat JS SDK + java to realize the functions of “sharing to the circle of friends” and “sending to friends”
•
Java
The main steps are as follows:
1. Bind domain name
First login WeChat public platform into the "official account settings" function settings to fill in the "JS interface security domain name". (special note: you don't need to add HTTP or HTTPS. You've suffered a loss)
2. Page import JS file
3. Verify the configuration by injecting permissions through the config interface
4. The verification is processed successfully through the ready interface
5. Processing failure verification through the error interface
Detailed page code
Java background action code:
WxConfig. java code
In addition, sha1util Java and md5util Java can be downloaded directly on the platform.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码