添加网页调试

This commit is contained in:
wangdan
2020-09-09 12:31:17 +08:00
parent f8ac401c67
commit b591a0120c
19 changed files with 370 additions and 7 deletions

View File

@@ -19,6 +19,10 @@ function aesDecrypt(data, key, iv) {
module.exports = options => {
return async function parmsDecode(ctx: Context, next) {
if(ctx.request.url == '/dev') {
await next();
return;
}
if (options.threshold && ctx.length < options.threshold) return;
const reqBody = ctx.request.body;