http使用protobuf协议 收到的回包会额外多几个0
发布于 5 年前 作者 jiajing 11219 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

部分安卓手机收到的protobuf回包的 buffer字段 前面会多4个0,后面多3个0

只有部分手机会出现,且目前没发现ios手机出现

访问方式如下

wx.request({

url: ,

header: {

‘content-type’: ‘application/protobuf’,

‘cache-control’: ‘no-cache’

},

method: ‘POST’,

responseType: ‘arraybuffer’,

data: buffer,

complete: res

2 回复

麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

遇到类似问题

回到顶部