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

add bodyParser

parent 63ee2e9c
Pipeline #21851 passed with stage
in 3 seconds
......@@ -18,12 +18,17 @@ module.exports = appInfo => {
// add your middleware config here
config.middleware = [ 'errorHandler'];
config.middleware = [ 'errorHandler' ];
// add your user config here
const userConfig = {
// myAppName: 'egg',
};
exports.bodyParser = {
jsonLimit: '1mb',
formLimit: '1mb',
};
return config;
};
......@@ -191,5 +191,10 @@ module.exports = appInfo => {
config.COURSE_WX_APPID = 'wx07a5f0ed5bdf4751';
config.COURSE_WX_SECRET = 'a1b2d32b018988176181497bd74a0b7d';
exports.bodyParser = {
jsonLimit: '1mb',
formLimit: '1mb',
};
return config;
};
......@@ -134,6 +134,11 @@ module.exports = appInfo => {
},
};
exports.bodyParser = {
jsonLimit: '1mb',
formLimit: '1mb',
};
config.CDN_BASE_URL = 'https://r.51gjj.com/image/';
config.NODE_URL = process.env.NODE_URL;
config.NODE_BASE_URL = process.env.NODE_BASE_URL;
......
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