diff --git a/.env.prod b/.env.pord
similarity index 100%
rename from .env.prod
rename to .env.pord
diff --git a/src/pages/Help/android.svg b/src/pages/Help/android.svg
index 6f6d969..4ce8a49 100644
--- a/src/pages/Help/android.svg
+++ b/src/pages/Help/android.svg
@@ -1,9 +1,9 @@
diff --git a/src/pages/Help/macos.svg b/src/pages/Help/macos.svg
index 42345c6..fc57c3d 100644
--- a/src/pages/Help/macos.svg
+++ b/src/pages/Help/macos.svg
@@ -1,9 +1,9 @@
diff --git a/src/pages/Help/windows.svg b/src/pages/Help/windows.svg
index bd7a77d..dd79253 100644
--- a/src/pages/Help/windows.svg
+++ b/src/pages/Help/windows.svg
@@ -1,9 +1,9 @@
diff --git a/src/utils/request/core.ts b/src/utils/request/core.ts
index a1f750f..bbefc67 100644
--- a/src/utils/request/core.ts
+++ b/src/utils/request/core.ts
@@ -153,27 +153,27 @@ export default class Request {
...config.extraConfig,
}
- if (config.data && !(config.data instanceof FormData)) {
- const plainText = JSON.stringify(config.data)
- config.data = HiAesUtil.encryptData(plainText, encryptionKey)
- }
-
- if (config.method?.toLowerCase() === 'get' || config.params) {
- const paramsToEncrypt = config.params || {}
- const plainParamsText = JSON.stringify(paramsToEncrypt)
- const encryptedParams = HiAesUtil.encryptData(plainParamsText, encryptionKey)
-
- config.params = {
- data: encryptedParams.data,
- time: encryptedParams.time,
- }
- }
+ // if (config.data && !(config.data instanceof FormData)) {
+ // const plainText = JSON.stringify(config.data)
+ // config.data = HiAesUtil.encryptData(plainText, encryptionKey)
+ // }
+ //
+ // if (config.method?.toLowerCase() === 'get' || config.params) {
+ // const paramsToEncrypt = config.params || {}
+ // const plainParamsText = JSON.stringify(paramsToEncrypt)
+ // const encryptedParams = HiAesUtil.encryptData(plainParamsText, encryptionKey)
+ //
+ // config.params = {
+ // data: encryptedParams.data,
+ // time: encryptedParams.time,
+ // }
+ // }
config.headers = mergeExtraConfig.formatHeader({
...this.config.headers,
...config.headers,
lang: 'zh_CN',
- 'login-type': 'device',
+ // 'login-type': 'device',
...(mergeExtraConfig.withToken && {
[mergeExtraConfig.tokenKey]: mergeExtraConfig.getToken(),
}),
@@ -193,21 +193,21 @@ export default class Request {
this.axiosInstance.interceptors.response.use(
(response: ResponseType) => {
const { data, config } = response
- let responseData = response.data.data
+ const responseData = response.data.data
- if (responseData && responseData.data && responseData.time) {
- try {
- const decryptedStr = HiAesUtil.decryptData(
- responseData.data,
- responseData.time,
- encryptionKey,
- )
- responseData = JSON.parse(decryptedStr)
- } catch (e) {
- console.error('解密失败:', e)
- return Promise.reject({ message: '数据解密异常' })
- }
- }
+ // if (responseData && responseData.data && responseData.time) {
+ // try {
+ // const decryptedStr = HiAesUtil.decryptData(
+ // responseData.data,
+ // responseData.time,
+ // encryptionKey,
+ // )
+ // responseData = JSON.parse(decryptedStr)
+ // } catch (e) {
+ // console.error('解密失败:', e)
+ // return Promise.reject({ message: '数据解密异常' })
+ // }
+ // }
axiosCanceler.removePending(config)
if (data.code !== 200) {