chore:2.0.6
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tiesheng/npm-tool",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "npm tool package",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user