wx.request({
url: dataUrl,
method: 'PATCH',
data: { "isRead": true },
header: app.globalData.headerCommon,
success: function (res) {
if (res.data.code === 200) {
typeof callback == 'function' && callback(res.data.data, setKey);
}
else {
showError(res.data.msg);
}
},
fail: function (error) {
console.log(error);
}
})
这个接口直接报
不知道是什么原因?
设置一下
contentType