From 1bd68894b290ebe09fa5e64595219834631ebcdd Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 30 May 2025 13:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/utils/encryptUtil.js | 2 +- http/http.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/commons/utils/encryptUtil.js b/commons/utils/encryptUtil.js index 95881ce..2141c81 100644 --- a/commons/utils/encryptUtil.js +++ b/commons/utils/encryptUtil.js @@ -5,7 +5,7 @@ * @site https://www.jeepay.vip * @date 2021/5/16 17:35 */ -import { SM4 } from 'gm-crypto' +// import { SM4 } from 'gm-crypto' import appConfig from '@/config/appConfig.js' let HEX_KEY = null diff --git a/http/http.js b/http/http.js index 926b1fb..3e5b512 100644 --- a/http/http.js +++ b/http/http.js @@ -11,7 +11,6 @@ import envConfig from '@/env/config.js' // 导入全局属性 import appConfig from '@/config/appConfig.js' import storageManage from '@/commons/utils/storageManage.js' -import { sm4DecryptByResData } from '@/commons/utils/encryptUtil.js' import infoBox from "@/commons/utils/infoBox.js" import go from '@/commons/utils/go.js'; import { reject } from 'lodash'; @@ -119,14 +118,6 @@ function commonsProcess(showLoading, httpReqCallback) { 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)