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