From e45bb599c2fa110056dc4c9f44204eab333260b2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 07 八月 2024 22:07:26 +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 768aa69..fb91d42 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1012,7 +1012,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