If the WeChat subscription account obtains the openId, some say that it can be authorized using the oauth2 of the service account, and some say that the unionid mechanism can be used. How to implement these two specifically, please provide the source code.
If the WeChat subscription account obtains the openId, some say that it can be authorized using the oauth2 of the service account, and some say that the unionid mechanism can be used. How to implement these two, please provide the source code.
Web page authorization to obtain basic user information:
https://mp.weixin.qq.com/wiki...
If you use the method you described, you need to have a subscription account and a service account, and then bind the two accounts on the open platform
You can directly obtain the openID through the service account, because the same user has two accounts bound to each other. The openID in the subscription account and the service account are the same