Article Directory
1. Error details:
(1) Backend:
(2) Frontend:
2. The reason for the error:
(1) The appids used by the front and back ends are inconsistent (WeChat Developer Tools/HBuilderX)
(2) Repeated requests, the incoming codes are inconsistent
3. Obtain WeChat appid and secret:
[WeChat public account platform] https://mp.weixin.qq.com/
[WeChat official document] https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/code2Session.html