WeChat applet acquisition user OpenID implementation method

WeChat applet acquisition method

front end:

  WX.login ({success {res.  
After acquiring CODE, pass to the background,


Then ask the WeChat interface


https://api.weixin.qq.com/sns/jscode2session? AppId = Appid & Secret = Secret & JS_code = JSCODE & GRANT_TYPE = JSCODE & GRANT_TYPE = AUTHORZATION_CODE

This interface is directly returned to OpenID

Thank you, I hope to help everyone, thank you Support for this site!

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment