调试:本地测试不加密
This commit is contained in:
@@ -31,6 +31,14 @@ module.exports = options => {
|
||||
const encodeStr = aesEncrypt(JSON.stringify(reqBody), ENCRYPT_KEY, ENCRYPT_IV);
|
||||
console.log(`encoded str: ${encodeStr}`);
|
||||
}
|
||||
|
||||
console.log(ctx.app.config.decodeParm)
|
||||
if(ctx.app.config.decodeParm == false) {
|
||||
await next();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!reqBody.data) return;
|
||||
|
||||
const decodeStr = aesDecrypt(reqBody.data, ENCRYPT_KEY, ENCRYPT_IV);
|
||||
|
||||
Reference in New Issue
Block a user