php - How to communicate data during WeChat login
欧阳克
欧阳克 2017-06-10 09:47:22
0
1
861


The previous WeChat public account login project was like this
Login uses userid origin_id openid to identify the uniqueness of the user and then add new users

However, due to project requirements, a small program is needed to realize data interoperability on both sides.
So I added a unionid and the appid of the small program and the openid of the small program
But there will still be a problem where a user has 2 days of data
May I ask the master how to deal with it
Consider how it is compatible when there is no unionid mode before. If you log in to the mini program first and then go to WeChat, there will be one user and two accounts

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(1)
滿天的星座

http://www.cnblogs.com/txw195...

The public account is bound to the open platform, and the unionid can also be obtained after authorization from the public platform web page. unionid is universal, that is to say unionid is bound as the only one.

userid+origin_id+unionid, write a special method to run the old data, use openid to pull the user's information, and update the unionid, so that it can be compatible.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!