Merge branch 'zcwy_0806_paihangb' into dev0515

This commit is contained in:
zhangsir
2024-11-01 11:14:37 +08:00

View File

@@ -649,18 +649,7 @@
//console.log(urlSign,'urlSign');
cookies.set('PLAYSIGN_TIME', ctime); //写客户端的cookie保存
const token = cookies.get('token');
const chunkSize = 100;
let tokenUrl = '';
for (let i = 0; i < token.length; i += chunkSize) {
const chunk = token.slice(i, i + chunkSize);
const encryptedChunk = encrypt(chunk);
if (encryptedChunk) {
tokenUrl += encryptedChunk + '&&&&&&&&&';
} else {
console.error('加密失败');
break;
}
}
const tokenUrl = encodeURIComponent(token)
//以下判断是为了区分本地环境和服务器环境
if (process.env.NODE_ENV == 'development') {
this.blobUrl = process.env.VUE_APP_FILE_BASE_URL + u;