Merge branch 'ah-simple' of http://192.168.0.75:3000/bonus/Zlpt_Portal into ah-simple
This commit is contained in:
commit
f67b394ea1
|
|
@ -44,8 +44,11 @@ service.interceptors.request.use(
|
|||
}
|
||||
if (config.data) {
|
||||
let data = typeof config.data === 'object' ? JSON.stringify(config.data) : config.data
|
||||
config.data = encryptWithSM4(data + '|' + hashWithSM3AndSalt(data))
|
||||
// config.data = data
|
||||
if (config.headers['encryptRequest'] == 'true') {
|
||||
config.data = encryptWithSM4(data + '|' + hashWithSM3AndSalt(data))
|
||||
} else {
|
||||
config.data = data
|
||||
}
|
||||
}
|
||||
return config
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue