During the development process of WeChat, when obtaining snsapi_userinfo based on the callback code, an error message {"errcode":40029,"errmsg":"invalid code"} was encountered. Later, it was found that the reason was because during the debugging process of its own internal service, the error message was The code is used twice, causing this error to be prompted. So, if anyone encounters this prompt, please be sure to check whether the code is used twice.
replyThe background processing is based on the website video. How can the code in the PHP sdk downloaded by the modified (WeChat payment) appear and be used twice?
During the development process of WeChat, when obtaining snsapi_userinfo based on the callback code, an error message {"errcode":40029,"errmsg":"invalid code"} was encountered. Later, it was found that the reason was because during the debugging process of its own internal service, the error message was The code is used twice, causing this error to be prompted. So, if anyone encounters this prompt, please be sure to check whether the code is used twice.