去掉加密
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* @site https://www.jeepay.vip
|
* @site https://www.jeepay.vip
|
||||||
* @date 2021/5/16 17:35
|
* @date 2021/5/16 17:35
|
||||||
*/
|
*/
|
||||||
import { SM4 } from 'gm-crypto'
|
// import { SM4 } from 'gm-crypto'
|
||||||
import appConfig from '@/config/appConfig.js'
|
import appConfig from '@/config/appConfig.js'
|
||||||
|
|
||||||
let HEX_KEY = null
|
let HEX_KEY = null
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import envConfig from '@/env/config.js'
|
|||||||
// 导入全局属性
|
// 导入全局属性
|
||||||
import appConfig from '@/config/appConfig.js'
|
import appConfig from '@/config/appConfig.js'
|
||||||
import storageManage from '@/commons/utils/storageManage.js'
|
import storageManage from '@/commons/utils/storageManage.js'
|
||||||
import { sm4DecryptByResData } from '@/commons/utils/encryptUtil.js'
|
|
||||||
import infoBox from "@/commons/utils/infoBox.js"
|
import infoBox from "@/commons/utils/infoBox.js"
|
||||||
import go from '@/commons/utils/go.js';
|
import go from '@/commons/utils/go.js';
|
||||||
import { reject } from 'lodash';
|
import { reject } from 'lodash';
|
||||||
@@ -119,14 +118,6 @@ function commonsProcess(showLoading, httpReqCallback) {
|
|||||||
return Promise.reject(bodyData) // 跳转到catch函数
|
return Promise.reject(bodyData) // 跳转到catch函数
|
||||||
}
|
}
|
||||||
|
|
||||||
// 加密数据
|
|
||||||
if (!bodyData.data && bodyData.encryptData) {
|
|
||||||
return Promise.resolve({
|
|
||||||
bizData: sm4DecryptByResData(bodyData.encryptData),
|
|
||||||
code: bodyData.code
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 构造请求成功的响应数据
|
// 构造请求成功的响应数据
|
||||||
return Promise.resolve(bodyData.data)
|
return Promise.resolve(bodyData.data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user