刚刚更新完开发者工具0.18.182100后, 调用wx.uploadFile() 设置 header 无效,值带不到server端
wx.uploadFile({ url: `${URL.uploadIdCard}`, filePath: filePath, name: 'file' , header:{access_token:app.globalData.userInfo.accessToken}, success: function (res) { that.setData({ idCardBackImage:res.data }); console.info(that.data.idCardBackImage); } }); |
真机上正常,但是IDE不好使。