wx.request传arraybuffer,后端接到参数丢失?
wx.request传arraybuffer后端接到参数丢失, 无论我传什么值,最终后端收到的二进制只有两个字节, data在传输中丢失了 wx.request({
url: "xxxxxx",
method: "POST",
responseType: "arraybuffer",
header: {
gateway_enc: "rsa加密token",
app_version: app_version ?? "20.0.0",
epid: "xxxxxxxxxxxxx",
platform: "mini_program",
},
data: "通过AES进行加密后编译成ArrayBuffer",
success(res) {
console.log(res)
},
fail(err) {
reject(err);
},
});