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?