From 80cac85d9f187c55043c63a1e044062453f8caeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 2 Jan 2024 14:45:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=20kkFile=E9=A2=84=E8=A7=88=E6=8F=90?= =?UTF-8?q?=E5=87=BA=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95=EF=BC=8C=E5=8A=A0?= =?UTF-8?q?=E6=B0=B4=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/kkFilePreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/kkFilePreview.js b/src/utils/kkFilePreview.js index c1a2f9b5..6b5cdf76 100644 --- a/src/utils/kkFilePreview.js +++ b/src/utils/kkFilePreview.js @@ -13,7 +13,7 @@ export const kkFilePreview = (fileUrl) => { // 水印内容 const watermarkTxt = `${userInfo.username} ${userInfo.realname}` // 客户环境预览需要加的加密参数 - const watermarkSign = md5(watermarkTxt, 'cnhtc') + const watermarkSign = md5(watermarkTxt + 'cnhtc') const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}` window.open(url) } \ No newline at end of file