The official account did not get the unionid, in the early stage, and now add Mini Program's question.

the existing official account has been running for 2 years, and now Mini Program function has been added.

official account user data has no unionId field,

if: Mini Program enters first from the official account. First update the unionid of the old data of the official account. Compare it when you get Mini Program"s data.

if advanced Mini Program: get unionid, because the old data does not have this field. Then add a new piece of data to the user table. The result is the same user, one for Wechat"s user data (user ID:10001) and one for Mini Program"s data (user ID:20002).

if you merge two pieces of data, you need to change all users in the system from ID 10001 to 20002?

or is there a discrepancy in my understanding of the pass?

Mar.05,2021
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-1b38458-2c0f8.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-1b38458-2c0f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?