[update] 删除预览增加的随机数

This commit is contained in:
lideqin
2024-06-19 10:20:18 +08:00
parent 6daa4713e8
commit 9c3a8aa9b5
2 changed files with 1 additions and 8 deletions
-4
View File
@@ -28,10 +28,6 @@ export function dealUrl (fileUrl) {
const watermarkTxt = `${userInfo.username} ${userInfo.realname} ${time}`
// 客户环境预览需要加的加密参数
const watermarkSign = md5(watermarkTxt + 'cnhtc')
const uidGenerator = () => {
return '-' + parseInt(Math.random() * 10000 + 1, 10)
}
fileUrl += `&serial=${uidGenerator()}`
return `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}`
}