Wx Wechat

admin

Because the asynchronous interface of wechat API has three callback functions, which are success , fail , complete Execution time( complete Must be executed at the end of the interface). So it’s a combination Promise The simple description is as follows: (the following is a simplified version, see the source code for details). The plugin allow you customize the information when you share link in Wechat to your friend or timeline or in QQ to your friend or QZone. Customize description and other meta information has supported in version 1.4. If you want to share link in Wechat directly, please follow these steps: 1. Verify your account on WeChat Admin Platform.

  1. Wx Wechat App
  2. Wx Wechat Account

https://github.com/IvinWu/weRequest

  1. wx.checkSession

    success:

  2. wx.login

  3. wx.getUserInfo

  4. Send code, encryptedData, iv to server

    Listen free to Chief Keef – Chiraq Villian (Feds, Paper and more). 14 tracks (53:19). Discover more music, concerts, videos, and pictures with the largest catalogue online at Last.fm. Listen to Chiraq Villian on Spotify. Chief Keef Album 2014 14 songs. Chief keef chiraq villain download. 18 - Chief Keef Ft Oochie P Wild Show Money 19 - Chief Keef Love Sosa (Rl Grime Remix) 20 - Chief Keef Ft Yo Gotti Designer (Remix) 21 - Chief Keef Darker 22 - Chief Keef Kobe 23 - Chief Keef Ft Waka Flocka Murda 24 - Chief Keef Ft Edai Gucci (Remix) 25 - Chief Keef Go To Jail 26 - Chief Keef Ft Kanye West Big Sean Jadakiss Pusha T I Dont Like.

Weixin app api can return user’s nickname and avatar, but not its openid

wx.login()

Wechat

https://developers.weixin.qq.com/miniprogram/dev/api/api-login.html

Returns:

session_key

  1. session_key is the key to decode user’s data
  2. Everytime wx.login() called, session_key will be updated
  3. wx.checkSession() to check if session is valid

Steps:

  1. Client: wx.login() to get temporaryCode (is called code in weixin’s api return value, and it can be used onece only)

  2. Client: Send temporaryCode to server

  3. Server: Send appid+appsecret+temporaryCode to Weixin’s server, Weixin’s server returns session_key (salt of temporaryCode) and openid (openid is the unique Weixin user id)

  4. Server: return 3rd_session (token; selfDefinedLoginStatus) (maybe can be the same as openid ) that generated according to session_key and openid to client.

  5. Client: Store 3rd_session (token) in persistence

  6. Client: Do request with 3rd_session(token)

  7. Server: Check if user can do request with 3rd_session(token)

Note: Weixin nickName code format is ISO-8859-1, you can convert it with:

Java Backend

Good version: https://my.oschina.net/magicalSam/blog/832895

juejin version: https://juejin.im/post/5ac9b72cf265da23906c486a

Simple version:https://my.oschina.net/ZhenyuanLiu/blog/1838069

https://blog.csdn.net/weixin_40099554/article/details/80003058

http://www.wxappclub.com/topic/524

wx.getUserInfo()

https://developers.weixin.qq.com/miniprogram/dev/api/open.html#wxgetuserinfoobject

注意:此接口有调整,使用该接口将不再出现授权弹窗,请使用 **<button open-type='getUserInfo'></button> 引导用户主动进行授权操作**

Wx Wechat App

getUserInfo return :

userInfo contains:

We should use session_key , iv to decrypt encryptedData

access_token

access_token 是全局唯一接口调用凭据,开发者调用各接口时都需使用 access_token

Wx Wechat Account

https://developers.weixin.qq.com/miniprogram/dev/api/token.html#%E8%8E%B7%E5%8F%96-access_token

https://developers.weixin.qq.com/miniprogram/dev/api/signature.html#wxchecksessionobject

Example

https://www.cnblogs.com/nosqlcoco/p/6105749.html

https://blog.csdn.net/qq_37848203/article/details/72763837

App decode request

Server side

https://developers.weixin.qq.com/miniprogram/dev/demo/aes-sample.zip

Please enable JavaScript to view the comments powered by Disqus.