使用B接口:https://api.weixin.qq.com/wxa/getwxacodeunlimit 生成小程序二维码,传入参数是:"{"page":"pages/class/class","scene":412213075488489472}"

但生成的二维码,小程序获取到的scene不是412213075488489472。


奇怪的是:小程序获取到测参数是:http请求日志中的"Content-disposition: attachment; filename="_412213075488489536"[\r][
]" 

难道是微信的坑?


以下是调用微信接口的http请求日志:

 http-outgoing-24 >> "POST /wxa/getwxacodeunlimit?access_token=token HTTP/1.1[\r][
]"              

 - http-outgoing-24 >> "Content-Length: 55[\r][
]"                        

 - http-outgoing-24 >> "Content-Type: application/json[\r][
]"            

 - http-outgoing-24 >> "Content-Encoding: utf-8[\r][
]"                   

 - http-outgoing-24 >> "Host: api.weixin.qq.com[\r][
]"                   

 - http-outgoing-24 >> "Connection: Keep-Alive[\r][
]"                    

 - http-outgoing-24 >> "User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_151)[\r][
]"                                                                                                                                                                         

 - http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][
]"             

 - http-outgoing-24 >> "[\r][
]"                                          

 - http-outgoing-24 >> "{"page":"pages/c

展开全部
收起
0回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部