取消字典数据加密

This commit is contained in:
冯辉
2026-05-01 02:48:55 +08:00
parent 6e63f81ede
commit 57b18c0a65
6 changed files with 46 additions and 28 deletions

View File

@@ -15,9 +15,9 @@ const needToEncryptSet = new Set([
]);
const encryptPathPrefixes = [
'/app/common/',
// '/app/common/',
'/app/chat/',
'/app/speech/',
// '/app/speech/',
'/app/job/',
'/app/company/',
'/app/companycontact/',
@@ -62,6 +62,7 @@ const handleResponseData = (resData) => {
if (resData?.encrypted) {
const decrypted = sm4Decrypt(config.sm4Config.key, resData.encryptedData);
resData = JSON.parse(decrypted);
console.log('[请求] 解密后数据:', resData);
}
} catch (e) {
console.error('[请求] 解密失败:', e.message);