AI助手支持GPT4.0
微信小程序扫描小程序码获取参数的问题?The WeChat applet scans the applet code to get the parameters?
微信小程序扫描小程序码获取参数的问题?
在后端生成小程序码,用到的接口是 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
首先后台scene这个参数是传了的,要不然不可能生成二维码。
生成之后前台进行扫描,在开发者工具里边扫描获取到的参数是
为什么scene这个参数在路径后边拼接的呢?
就算是拼接的我进行了截取,测试截取没问题,小程序上线之后就直接报 截取的错误, 本人是通过正则匹配来截取的 match
请问怎么解决呢?
In the back-end generation of small code, the interface is used https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html First of all, the background scene parameter is passed, otherwise it is impossible to generate a two-dimensional code. After generation, the foreground is scanned, and the parameters obtained by scanning in the developer tool are why the scene parameter is spliced behind the path? Even if it's spliced, I intercepted it. The test intercepted it no problem. After the small program went online, I directly reported the error of interception. I intercepted it through regular matching. How can I solve the problem?
线上报什么错?