chore:2.0.6

This commit is contained in:
曾文豪
2025-04-01 10:35:22 +08:00
parent b3336a5da0
commit 67066d69d6
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@tiesheng/npm-tool",
"version": "2.0.5",
"version": "2.0.6",
"description": "npm tool package",
"main": "index.js",
"scripts": {

View File

@@ -77,8 +77,12 @@ const dealParamsBody = (options) => {
} else {
if (options.requestType !== 'form') {
options.data = {...extraParams, ...options.data,};
options.data = {
'encryptData': crypto.encrypt(JSON.stringify(options.data))
// 根据属性开启加密
if (Storage.getEncryptBody()) {
options.data = {
'encryptData': crypto.encrypt(JSON.stringify(options.data))
}
}
}
}