添加接口及 薇课视频内容采用url加密处理

This commit is contained in:
daihh
2022-06-03 22:54:48 +08:00
parent 0607d7a2ed
commit 0ca54c731a
2 changed files with 38 additions and 9 deletions

View File

@@ -502,14 +502,14 @@ export default {
let ctime=parseInt(nowDate.getTime()/1000);
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
//console.log(beforeUrl,'beforeUrl');
let urlSign=encodeURIComponent(encrypt(beforeUrl));
//let urlSign=encodeURIComponent(encrypt(beforeUrl));
//console.log(urlSign,'urlSign');
cookies.set('PLAYSIGN_TIME', ctime);//写客户端的cookie保存
//this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/m/course/play/resource?sign='+urlSign;
//this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/course/resource?fid='+fid;
//this.blobUrl='http://localhost:9090/xboe/course/resource?fid='+fid;
this.blobUrl=this.fileBaseUrl+u;
console.log(this.blobUrl,'this.blobUrl');
this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/course/resource?fid='+fid;
//this.blobUrl='http://127.0.0.1:9090/xboe/course/resource?fid='+fid;
//this.blobUrl=this.fileBaseUrl+u;
//console.log(this.blobUrl,'this.blobUrl');
},
createVideoBlob(url){
let $this=this;