Commit cc848714 authored by 任国军's avatar 任国军

fix notify

parent a8a6105b
Pipeline #24559 passed with stage
in 4 seconds
...@@ -94,8 +94,6 @@ class WechatController extends Controller { ...@@ -94,8 +94,6 @@ class WechatController extends Controller {
xmlData += '<return_msg><![CDATA[OK]]></return_msg>'; xmlData += '<return_msg><![CDATA[OK]]></return_msg>';
xmlData += '</xml>'; xmlData += '</xml>';
ctx.logger.info('notify_headers: ' + JSON.stringify(ctx.request.header));
let data = ''; let data = '';
ctx.req.setEncoding('utf8'); ctx.req.setEncoding('utf8');
ctx.req.on('data', function(chunk) { ctx.req.on('data', function(chunk) {
......
...@@ -137,16 +137,16 @@ module.exports = appInfo => { ...@@ -137,16 +137,16 @@ module.exports = appInfo => {
exports.bodyParser = { exports.bodyParser = {
jsonLimit: '10mb', jsonLimit: '10mb',
formLimit: '10mb', formLimit: '10mb',
enable: true, // enable: true,
queryString: { // queryString: {
arrayLimit: 100, // arrayLimit: 100,
depth: 5, // depth: 5,
parameterLimit: 1000, // parameterLimit: 1000,
}, // },
enableTypes: [ 'json', 'form', 'text' ], // enableTypes: [ 'json', 'form', 'text' ],
extendTypes: { // extendTypes: {
text: [ 'text/xml', 'application/xml', 'text/html' ], // text: [ 'text/xml', 'application/xml', 'text/html' ],
}, // },
}; };
config.CDN_BASE_URL = 'https://r.51gjj.com/image/'; config.CDN_BASE_URL = 'https://r.51gjj.com/image/';
......
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