生成带参数的小程序二维码及测试方式?
用C#生成了一个带参数的小程序二维码
用微信扫码也能进入小程序
但在开发环境中
怎么都取不到参数 scene
问题一:怎么验证所生成的二维码确实带有这个参数?
问题二:如何在开发阶段测试这个参数?
3 回复

用二维码编译还是取不到opt 是空的用自定义编译是这样的


关键是生成二维码图片后,没法验证参数是否加进去了。
生成二维码:sendData = "{\"width\":430,\"auto_color\":false,\"line_color\"{\"r\":0,\"g\":0,\"b\":0},\"is_hyaline\":false,\"scene\":\"4d8f18d1cc30457085e3e6f150713271\",\"page\":\"\"}"
ServerURL = https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=