原来是wx.request默认header头部为:
headers: {
'Content-Type': 'application/json'
},
这种模式对于原来接口不能接收,应改为:
header: {
'content-type': 'application/x-www-form-urlencoded'
},
原来是wx.request默认header头部为:
headers: {
'Content-Type': 'application/json'
},
这种模式对于原来接口不能接收,应改为:
header: {
'content-type': 'application/x-www-form-urlencoded'
},