diff --git a/dist/npm/wx.js b/dist/npm/wx.js index b6bebd3..4291c3a 100644 --- a/dist/npm/wx.js +++ b/dist/npm/wx.js @@ -753,6 +753,9 @@ module.exports = Fly; //微信小程序适配器 module.exports = function (request, responseCallback) { + if(typeof request.body === 'string'){ + request.body = JSON.parse(request.body ) + } var con = { method: request.method, url: request.url, diff --git a/src/adapter/wx.js b/src/adapter/wx.js index f5d1797..52804b0 100644 --- a/src/adapter/wx.js +++ b/src/adapter/wx.js @@ -1,5 +1,8 @@ //微信小程序适配器 module.exports=function(request, responseCallback) { + if(typeof request.body === 'string'){ + request.body = JSON.parse(request.body ) + } let con = { method: request.method, url: request.url,