- 陀螺仪无反应
[图片] api均无反应,打印至 weixin api 后 无反应
2023-09-25 - ios 15.7.1 后端接收不到传参,data为空
data:{ image:imageBase, secret:{ id: '22222', name: '5555' } } export function $postr(uri, data) { console.log(data.secret) //使用s4加密,数据打印存在,后端接收不到传参,data为空,部分ios和安卓正常 return new Promise(function (resolve, reject) { let secretdata s4.secretKey = getApp().globalData.secretKey s4.iv = getApp().globalData.iv if ( !(JSON.stringify(data.secret) === '{}') && !(JSON.stringify(data.secret) == null) && !(JSON.stringify(data.secret) == '') ) { secretdata = s4.encryptData_CBC(JSON.stringify(data.secret)) console.log(secretdata) } else { secretdata = data } data.secret = secretdata wx.request({ url: getApp().globalData.url + uri, data: data, method: 'POST', header: { 'Content-Type': 'application/x-www-form-urlencoded', // 'X-Requested-With': 'XMLHttpRequest', cookie: wx.getStorageSync('sessionid'), version: wx.getStorageSync('version') }, withCredentials: true, success: function (res) {}, fail: function (res) {} }) }) }
2023-08-07