Authored by xuhongyun

Merge branch 'dev-xuhongyun' into grey

... ... @@ -84,7 +84,7 @@ module.exports = function (apiCofig) {
// App.use(bodyParser.urlencoded({extended: true}));
App.use(bodyParser.json({limit: '50mb'}));
App.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
App.use(bodyParser.urlencoded({limit: '50mb', extended: true, parameterLimit:50000}));
App.use(cookieParser());
App.use(multer());
... ...
... ... @@ -16,6 +16,7 @@ module.exports=function(controllers){
return function(err,req,res,next){
console.log(err);
console.log("req.originalUrl:"+req.originalUrl)
console.dir(err);
if(err.status=="404"){
var method = req.method.toLowerCase();
var path = req.route?req.route.path:'';
... ...
... ... @@ -84,7 +84,7 @@ module.exports = function (apiCofig) {
// App.use(bodyParser.urlencoded({extended: true}));
App.use(bodyParser.json({limit: '50mb'}));
App.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
App.use(bodyParser.urlencoded({limit: '50mb', extended: true, parameterLimit:50000}));
App.use(cookieParser());
App.use(multer());
... ...
... ... @@ -16,6 +16,7 @@ module.exports=function(controllers){
return function(err,req,res,next){
console.log(err);
console.log("req.originalUrl:"+req.originalUrl)
console.dir(err);
if(err.status=="404"){
var method = req.method.toLowerCase();
var path = req.route?req.route.path:'';
... ...