From fcb123b694b9766016a562d7946d57155330fffa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 07 八月 2024 22:34:59 +0800 Subject: [PATCH] 2024-08-07 --- src/api/index.js | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 7f806ad..8a0eef2 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1047,7 +1047,15 @@ data: param }).then(res => { if (res.status && res.urlPath) { - res.urlPath = window.GLOB.baseurl + res.urlPath + if (!/Content\/images/.test(res.urlPath)) { + let key = CryptoJS.enc.Utf8.parse('D1185ED7B32568C9') + let wordArray = CryptoJS.enc.Base64.parse(res.urlPath) + let decryptedWordArray = CryptoJS.AES.decrypt({ ciphertext: wordArray }, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }) + res.urlPath = CryptoJS.enc.Utf8.stringify(decryptedWordArray) + } + if (!/^http/.test(res.urlPath)) { + res.urlPath = window.GLOB.baseurl + res.urlPath + } } resolve(res) }) -- Gitblit v1.8.0