[update] 预览接口加时间戳做标识
This commit is contained in:
@@ -28,6 +28,9 @@ export function dealUrl (fileUrl) {
|
||||
const watermarkTxt = `${userInfo.username} ${userInfo.realname} ${time}`
|
||||
// 客户环境预览需要加的加密参数
|
||||
const watermarkSign = md5(watermarkTxt + 'cnhtc')
|
||||
// 路径增加时间戳
|
||||
const timestamp = new Date().getTime()
|
||||
fileUrl += `&time=${timestamp}`
|
||||
return `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user