I would like to ask Mini Program what information obtained by wx.getUserInfo needs to be transmitted to his own server?

what my Mini Program needs is to help the backend get the unionid to get through the official account and Mini Program. I get the login status and maintain the login.


isn't this api disabled? You have to use the open-data button.
needs to obtain encryptedData and iv, and send them to the backend. The backend uses iv and cached session_key to decrypt the encryptedData with AES.


in general, you only need to send the code in wx.login to the backend, and the backend can exchange code for openid and unionid for login authentication.
if you also need to collect users' nicknames and profile pictures, gender, location and other information, you need wx.getUserInfo to obtain, but the new version of this API is not allowed, you need to use open-data.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3678-31e6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3678-31e6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?