mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
添加接口及 薇课视频内容采用url加密处理
This commit is contained in:
@@ -280,6 +280,32 @@ const auditList = function(query) {
|
|||||||
return ajax.post('/xboe/m/course/manage/audit-pagelist', query);
|
return ajax.post('/xboe/m/course/manage/audit-pagelist', query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 指定审核人,转审核人
|
||||||
|
* @param {Object} data
|
||||||
|
* {courseId:课程id,teacherId:课程的名称,teacherName:教师名称,remark:备注}
|
||||||
|
*/
|
||||||
|
const auditAppoint = function(data) {
|
||||||
|
return ajax.post('/xboe/m/course/audit/appoint', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取审核信息
|
||||||
|
* @param {courseId:'',teacherId:'可以不填写,系统会查询当前人'} data
|
||||||
|
*/
|
||||||
|
const getAuditInfo = function(data) {
|
||||||
|
return ajax.post('/xboe/m/course/audit/infos', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取审核日志
|
||||||
|
* @param {courseId:'',teacherId:'可以不填写,系统会查询当前人'} data
|
||||||
|
*/
|
||||||
|
const getAuditLogs = function(data) {
|
||||||
|
return ajax.post('/xboe/m/course/audit/logs', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 管理员的课程审核处理
|
* 管理员的课程审核处理
|
||||||
* @param {Object} query {id:课程id,title:课程的名称, Boolean pass 是否通过,remark 备注}
|
* @param {Object} query {id:课程id,title:课程的名称, Boolean pass 是否通过,remark 备注}
|
||||||
@@ -401,6 +427,9 @@ export default {
|
|||||||
getHomework,
|
getHomework,
|
||||||
countWaitAudit,
|
countWaitAudit,
|
||||||
auditList,
|
auditList,
|
||||||
|
auditAppoint,
|
||||||
|
getAuditInfo,
|
||||||
|
getAuditLogs,
|
||||||
audit,
|
audit,
|
||||||
auditAndPublish,
|
auditAndPublish,
|
||||||
getAssess,
|
getAssess,
|
||||||
|
|||||||
@@ -502,14 +502,14 @@ export default {
|
|||||||
let ctime=parseInt(nowDate.getTime()/1000);
|
let ctime=parseInt(nowDate.getTime()/1000);
|
||||||
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
|
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
|
||||||
//console.log(beforeUrl,'beforeUrl');
|
//console.log(beforeUrl,'beforeUrl');
|
||||||
let urlSign=encodeURIComponent(encrypt(beforeUrl));
|
//let urlSign=encodeURIComponent(encrypt(beforeUrl));
|
||||||
//console.log(urlSign,'urlSign');
|
//console.log(urlSign,'urlSign');
|
||||||
cookies.set('PLAYSIGN_TIME', ctime);//写客户端的cookie保存
|
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/m/course/play/resource?sign='+urlSign;
|
||||||
//this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/course/resource?fid='+fid;
|
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='http://127.0.0.1:9090/xboe/course/resource?fid='+fid;
|
||||||
this.blobUrl=this.fileBaseUrl+u;
|
//this.blobUrl=this.fileBaseUrl+u;
|
||||||
console.log(this.blobUrl,'this.blobUrl');
|
//console.log(this.blobUrl,'this.blobUrl');
|
||||||
},
|
},
|
||||||
createVideoBlob(url){
|
createVideoBlob(url){
|
||||||
let $this=this;
|
let $this=this;
|
||||||
|
|||||||
Reference in New Issue
Block a user