WeChat mini program trial version, open debugging on mobile phone and normal access, close debugging and access unavailable

Recently, several of our guys formed a team to prepare for the WeChat Mini Program Competition. The internal beta version of the mini program was written, but when the trial version was launched, a bunch of problems arose. The most outrageous thing is that after uploading the code to the WeChat public platform, when I scanned the code with my mobile phone to access it, I found that the buttons related to sending requests to the backend could not be executed. I just turned on debugging on my mobile phone, and then I immediately thought Solved the problem of mini program verifying legal domain names.

So, I went to the developer tools, unchecked the option "Do not verify legal domain names" , and re-uploaded the code. However, I still cannot send back-end requests when accessing via mobile phone. After struggling for a while, when I pulled down WeChat to open the mini program search page, I suddenly thought that there might be a problem with WeChat cache. So I dragged the trial version I opened last time to the bottom and deleted it, then scanned the QR code to open it and it was normal. Nice!

Guess you like

Origin blog.csdn.net/m0_63080216/article/details/130734796