function request(url, postData, message, doSuccess, doFail, doComplete) {
var baseUrl = getBaseUrl();
var xml = sign.xmlStr(postData, url);
wx.request({
url: baseUrl + '?op=' + url,
data: xml,
method: 'POST'
header: {
'content-type': 'application/soap+xml; charset=utf-8'
},
dataType: 'xml'
success: function (res) {
if (typeof doSuccess == "function") {
if (message != "") {
wx.hideLoading();
}
if (res.statusCode == 200) {
} else {
wx.showToast({
icon: 'none'
title: url + res,
})
doFail();
}
}
},
});
看请求接口 哪种情况 返回400喽,写个这个谁能猜得到呢
--↓↓👍如果觉得有帮助的话请点个【赞】吧