Commit 070657f3 authored by 任国军's avatar 任国军

notify add log

parent d47fa494
Pipeline #24536 passed with stage
in 4 seconds
...@@ -97,6 +97,8 @@ class WechatController extends Controller { ...@@ -97,6 +97,8 @@ class WechatController extends Controller {
xmlData += '</xml>'; xmlData += '</xml>';
ctx.body = xmlData; ctx.body = xmlData;
ctx.logger.info(ctx.req);
let data = ''; let data = '';
ctx.req.setEncoding('utf8'); ctx.req.setEncoding('utf8');
ctx.req.on('data', function(chunk) { ctx.req.on('data', function(chunk) {
......
...@@ -145,7 +145,7 @@ module.exports = appInfo => { ...@@ -145,7 +145,7 @@ module.exports = appInfo => {
}, },
enableTypes: [ 'json', 'form', 'text' ], enableTypes: [ 'json', 'form', 'text' ],
extendTypes: { extendTypes: {
text: [ 'text/xml', 'application/xml' ], text: [ 'text/xml', 'application/xml', 'application/x-www-form-urlencoded' ],
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment