wx.uploadFile本地和安卓没问题,ios的体验版返回值出现问题
wx.uploadFile调用后端已经上传成功,但是小程序在获取返回值的时候,ios获取不到,data直接是空的,安卓正常 [图片] 这是代码: wx.chooseMedia({ mediaType: ['image'], success: res => { var files = res.tempFiles; for (var i=0; i < files.length; i++) { const _token = wx.getStorageSync('token') wx.uploadFile({ filePath: res.tempFiles[i].tempFilePath, name: 'file', url: base.url + "/copp/v1/nfy/upload", formData: { 'token': _token, 'fid': that.data.FormData1.fid }, success: result1 => { console.log(result1) var ss = JSON.parse(result1.data) var data = JSON.parse(Dec.Decrypt(ss.data)) console.log(data) data.wxFile = base.admin_url + data.wxFile list.push(data) that.setData({ nfyWxFileList: list }) } }) } } })