chore:2.0.5
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiesheng/npm-tool",
|
"name": "@tiesheng/npm-tool",
|
||||||
"version": "2.0.4",
|
"version": "2.0.5",
|
||||||
"description": "npm tool package",
|
"description": "npm tool package",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ const dealParamsBody = (options) => {
|
|||||||
extraParams = GlobalConfig.getConfig().httpParams();
|
extraParams = GlobalConfig.getConfig().httpParams();
|
||||||
}
|
}
|
||||||
if (options.method === "GET") {
|
if (options.method === "GET") {
|
||||||
options.params = {...options.params, ...extraParams};
|
options.params = {...extraParams, ...options.params};
|
||||||
} else {
|
} else {
|
||||||
if (options.requestType !== 'form') {
|
if (options.requestType !== 'form') {
|
||||||
options.data = {...options.data, ...extraParams};
|
options.data = {...extraParams, ...options.data,};
|
||||||
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