AI助手支持GPT4.0
post请求后台接收不到数据?Post request background can not receive data?
post请求后台接收不到数据?
wx.request({
url: url
method: 'POST',
header: {
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": getApp().globalData.session
},
data: data,
dataType: 'json',
success: res=>{
console.log(data)
console.log(res)
}
后台接收不到数据,为什么啊
wx.request({ url: url method: 'POST', header: { "Content-Type": "application/x-www-form-urlencoded", "Authorization": getApp().globalData.session }, data: data, dataType: 'json', success: res=>{ console.log(data) console.log(res) } 后台接收不到数据,为什么啊
试试把data拼接到url上,例如https://xxx.com?id=1