取消字典数据加密
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user