Mini Program's problem of creating user table after login

Mini Program backend requests Wechat server to return whether the openid, user"s first login is based on openid to build the user data table. The client login successfully requests that the user data be sent to the server. The server receives the 3rd_session to separate the openid, and then goes to the database to find the user data?

The unique identity of the

user is openid or uid. You are right to distinguish in this way.

Menu