chore:2.0.4
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tiesheng/npm-tool",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"description": "npm tool package",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -75,7 +75,7 @@ const dealParamsBody = (options) => {
|
||||
if (options.method === "GET") {
|
||||
options.params = {...options.params, ...extraParams};
|
||||
} else {
|
||||
if (options.requestType === 'json') {
|
||||
if (options.requestType !== 'form') {
|
||||
options.data = {...options.data, ...extraParams};
|
||||
options.data = {
|
||||
'encryptData': crypto.encrypt(JSON.stringify(options.data))
|
||||
|
||||
Reference in New Issue
Block a user