|
|
|
@ -21,7 +21,7 @@ function server(){ |
|
|
|
|
app.use(koaBody({ |
|
|
|
|
multipart: true, // 支持文件上传
|
|
|
|
|
formidable: { |
|
|
|
|
maxFieldsSize: 10 * 1024 * 1024, // 最大文件为2兆
|
|
|
|
|
maxFieldsSize: 500 * 1024 * 1024, // 最大文件为2兆
|
|
|
|
|
multipart: true // 是否支持 multipart-formdate 的表单
|
|
|
|
|
} |
|
|
|
|
})); |
|
|
|
@ -73,13 +73,17 @@ function back(){ |
|
|
|
|
const outTime = getT() - new Date().getTime() |
|
|
|
|
|
|
|
|
|
DATABASELIST.forEach(i => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
for(let item in DATABASELIST){ |
|
|
|
|
const i = DATABASELIST[item]; |
|
|
|
|
database = i; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
setInterval(() => { |
|
|
|
|
backSQL(host, user, passwd, database) |
|
|
|
|
}, 1000 * 60 * mintues) |
|
|
|
|
},outTime) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|