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