|
@@ -3,9 +3,8 @@ import ParserData from '@/api/crypto.js';
|
|
|
export function parseData(response) {
|
|
|
const headKeyStr=response.headers.dk
|
|
|
const desKey=ParserData.Des3Decrypt(headKeyStr,'JMCqSoUrTAmyNNIRb0TtlrPk')
|
|
|
- // let result = process.env.NODE_ENV !== "production"
|
|
|
- // ? JSON.parse(ParserData.Des3Decrypt(response.data,desKey))
|
|
|
- // : response.data;
|
|
|
- // return result
|
|
|
- return JSON.parse(ParserData.Des3Decrypt(response.data,desKey))
|
|
|
+ let result = process.env.NODE_ENV == "production"
|
|
|
+ ? JSON.parse(ParserData.Des3Decrypt(response.data,desKey))
|
|
|
+ : response.data;
|
|
|
+ return result
|
|
|
}
|