When doing WeChat payment, I used the downloaded demo for testing. One problem is that clicking 'jsapi payment' jumps to the payment page very slowly. After debugging, I found that the speed is when the getopenid() method is called. It will be slow. Has anyone encountered this problem? Does anyone know how to solve it?
This is because the code you wrote when getting openid is problematic and the execution efficiency is slow