Using Public Account web page authorization for public account fan migration (I) ideas, public fans
Sometimes, the public number we operate may need to be changed for some reason, such as the company being acquired and the transfer of the public number.
The fans of the original public account naturally want to migrate them to the new public account. The general practice is to use the built-in fan transfer function.
However, there are also a lot of procedures, and the audit fee of 300 yuan is required. The most terrible thing is that if your public account platform provides some systems, users' data on the system cannot be migrated,
Such as user level, balance, relationships with other users, orders, etc. After all, the user's openId is different for each public account. Of course, if the system was originally designed
The UnionId mechanism is not so troublesome, but you need to bind the public account to the open platform.
Let's take a look at how to migrate the public account through the webpage authorization mode. Let's talk about the solution and the source code in the future.
Step 1: Prepare for receiving the new public account.
We know that after webpage authorization, we can obtain the openId, nickname, and other related information of fans. We will focus on the user's openId for migration.
First, we receive a parameter openId from the old platform, and then connect the database of the old platform on the new platform to find out the user information, because when the new user jumps to the new platform,
We can obtain the user's information, register an account for the user again, and log on automatically. Therefore, the old user information we obtain can be updated to the users on the new platform.
Including its level and balance.
Step 2: add a link to the member center of the old public account platform to jump to the new platform, and add the openId parameter of the old platform.
After this jump to the new platform, everything will naturally be transferred to the new platform.