|
@@ -111,8 +111,8 @@ service.interceptors.request.use(
|
|
|
const raw = config.url.split('?')[1]
|
|
|
// const raw = config.encodeParams ? config.url.split('?')[1] : config.url.split('?')[1]
|
|
|
const body = {
|
|
|
- ...config.data,
|
|
|
- ...config.params
|
|
|
+ ...typeof config.data === 'string' ? JSON.parse(config.data) : config.data,
|
|
|
+ ...typeof config.params === 'string' ? JSON.parse(config.params) : config.params
|
|
|
}
|
|
|
/**
|
|
|
* header
|
|
@@ -126,7 +126,7 @@ service.interceptors.request.use(
|
|
|
setBeijingTimestamp(_timestamp)
|
|
|
}
|
|
|
|
|
|
- const { noSign, ...header} = encryptionFun({
|
|
|
+ const header = encryptionFun({
|
|
|
raw,
|
|
|
body,
|
|
|
appId: 'web_client',
|
|
@@ -139,10 +139,10 @@ service.interceptors.request.use(
|
|
|
params: config.params,
|
|
|
body,
|
|
|
raw,
|
|
|
- noSign,
|
|
|
config
|
|
|
// browserInfo: getBrowserInfo()
|
|
|
}
|
|
|
+ console.log('加密参数', content)
|
|
|
errorData.push({
|
|
|
time: header.timestamp,
|
|
|
url: config.url,
|