wx.scanCode真机扫描普通二维码,没有path?

小程序 文章 2022-01-06 18:20 1025 0 全屏看文

AI助手支持GPT4.0

wx.scanCode真机扫描普通二维码,没有path?wx.scanCode scans ordinary QR codes on real machine, there is no path?

wx.scanCode真机扫描普通二维码,没有path?

扫描的二维码不是小程序码,而是普通二维码,但是普通二维码已经配置好跳转本小程序的。使用真机微信扫码是可以正常打开的,但是在小程序使用scanCode这个API就不行了

开发者工具扫码返回是有path的,可以成功跳转到相应页面

=======================================================================================================

真机测试(开发版),扫描普通二维没有path

微信版本8.0.16


The scanned QR code is not an applet code, but an ordinary QR code, but the ordinary QR code has been configured to jump to this applet. It can be opened normally by using the real machine wechat scanning code, but it is not possible to use the scancode API in the applet. The developer tool scanning code returns a path and can successfully jump to the corresponding page ==============================================================================================, Scan ordinary 2D path wechat version 8.0.16

回答:

destiny:

场景都不一样

😏 WillyBen Chan:什么场景不一样?
tomheng:

自己跳转下?

😏 WillyBen Chan:不是只跳一个页面。想到的解决办法就是加多个带页面路径的参数了
peng:

现有设定也没毛病,你本身扫码的就普通二维码,它解析出来的肯定就是普通二维码的内容,只是小程序开发工具扫码特殊处理去查了这个普通二维码的地址有没有关联小程序。

-EOF-

AI助手支持GPT4.0