uniapp微信小程序 pc端网络请求失败,但是在安卓、ios 端真机没问题
报错: {errMsg: "request:fail Network Error"}
代码:
uni.request({
url: 'https://mapi-test.xisaiwang.cn/app/v3/product/hemberSku.do',
method: 'POST',
dataType: 'json',
data: {
classifyId: '1:109:236:242:'
},
header: {
Host: "mapi-test.xisaiwang.cn",
clientType: "WXAPP",
"content-type": "application/x-www-form-urlencoded;charset=utf-8",
pkg: "wxcbc57185d84eeeb2",
sscc: "1fbbda4fc736f73f45024654725760a3",
userDevice: "wxxcx",
v: "1.6",
wxAPPId: "wxcbc57185d84eeeb2"
},
success: function(res) {
console.log('单独请求 success', res);
},
complete(e) {
// 请求完成
console.log("单独请求 请求完成", e);
},
fail: function(err) {
console.log("单独请求 请求失败", err);
}
});