Page ({
)data: {
time: "",//
currentTime: 61,
data: {
"mobileAccount": "17611227293",
"codeType": "1"
}
},
getVerificationCode: function () {
this.getcode();
var that = this;
that.setData({
disabled: true
})
},
getcode: function () {
var that = this;
var currentTime = that.data.currentTime;
var sign = utilMd5.getSignMessage(app.globalData.signeed.partner, app.globalData.signeed.app_key , that.data.data);
var data = that.data.data
console.log(data)
wx.request({
url: "http://api.xnyzc.com/api/user/sendCodeNew.do",
method: "POST",
data: {
partner: "1000000",
data:{
"mobileAccount": "17611227293",
"codeType": "1"
}
sign
},
header: {
"content-type": "application/x-www-form-urlencoded",
},
success: function (res) {
console.log(res)
},
fail: function (res) {
console.log(res)
}
})
after sending the request, the signature verification is successful, and the backend cannot get the value of data
data contains object Object
what should I do with it?