带参数的二维码怎么本地测试?

小程序 文章 2020-08-18 16:21 531 0 全屏看文

AI助手支持GPT4.0

带参数的二维码怎么本地测试?How to test the QR code with parameters locally?

带参数的二维码怎么本地测试?

之前已经上线了一版小程序,现在做了调整根据手机号生成带参数的小程序码,有学员通过小程序码进来可以做一下是通过谁的小程序码进来的,但是新版本还没发布,这个功能怎么本地测试呢?

A version of the applet has been launched before, but now it has been adjusted to generate a small program code with parameters according to the mobile phone number. Some students can come in through the small program code and do it. But the new version has not been released. How can this function be tested locally?

回答:

谋谋谋:

楼下正解

王欢+คิดถึง:

1.自己开发的话,在前面写个测试页面,通过这种方式模拟二维码进入

/pages/index/index?scene=hashcode%3d${that.data.hashcode}

2.上线前测试推荐使用体验版小程序,其他终端配合生成体验版二维码


老铁,如果有用,麻烦三连

A.G.A.I.N:

开发工具选择通过二维码,onLaunch中options.query里能获取参数

拾忆:

开发者工具选择这个模式读取二维码

林:

-EOF-

AI助手支持GPT4.0