参数传递,后台传输无问题,ios 和 部分Android手机无问题!!
wx.request({
url: “https://xxx.xxx.com/v1/login/loginxcx.php?app=wycbd&code=” + code + “&encryptedData=” + res.encryptedData + “&iv=” + res.iv + “&rawData=” + res.rawData + “&signature=” + res.signature,
success: function (res) {
console.log(res)
baseData.getuserId(res.data.data)
}
})
wx.request({
url: “https://xxx.xxx.com/v1/login/loginxcx.php”,
data: {
app: ‘wycbd’,
code: code,
encryptedData: res.encryptedData,
iv: res.iv,
rawData: res.rawData,
signature: res.signature
},
method: “POST”,
success: function (res) {
console.log(res)
baseData.getuserId(res.data.data)
}
})
是这样子吗?