更新API

This commit is contained in:
dengtongyu committed 2020-11-23 15:30:21 +08:00
1 parent 16769a8726
commit ece1e8065c
16 files changed
+161 -1

No files matched your search

+16
View File
@@ -23,6 +23,22 @@ module.exports = appInfo => {
// myAppName: 'egg',
};
config.multipart = {
mode: 'file',
fieldNameSize: 100,
fieldSize: '100kb',
fields: 9,
fileSize: '10mb',
files: 9,
whitelist: [ '.jpg', '.jpeg', '.png', '.gif', '.webp', '.bmp' ],
};
config.security = {
csrf: {
enable: false,
},
};
config.onerror = {
all(error, ctx) {
ctx.body = { errcode: 500, desc: error, result: false, data: null };