更新:免费课程增加分类筛选
This commit is contained in:
@@ -306,7 +306,6 @@
|
||||
},
|
||||
// 获取播放凭证
|
||||
async getLive(isChange, newVideoData) {
|
||||
console.log('获取播放凭证11111111111111', newVideoData);
|
||||
if (this.reaquestFlag) {
|
||||
uni.showToast({
|
||||
title: '操作太快了,歇一下吧',
|
||||
@@ -335,13 +334,28 @@
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
console.log('获取播放凭证666',res.video.m3u8Url);
|
||||
console.log('获取播放凭证666',res.video.m3u8Url);
|
||||
this.reaquestFlag = false
|
||||
if (this.$platform == 'ios') {
|
||||
if (res.video.type == 1 && res.video.m3u8Url == null || res.video
|
||||
.type == 1 && res.video.m3u8Url == '') {
|
||||
if (this.$platform !== 'ios') {
|
||||
if (res.video.type == 1 && (res.video.m3u8Url == null || res.video.m3u8Url == '')) {
|
||||
// 只存在私有加密
|
||||
this.show = true
|
||||
$http.request({
|
||||
url: "medical/course/addErrorCourse",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
// "courseId": this.videoData.courseId,
|
||||
// "catalogueId": this.videoData.catalogueId,
|
||||
"chapterId": res.video.chapterId,
|
||||
"videoId": res.video.id,
|
||||
"sort": res.video.sort
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
}).then(() => {
|
||||
console.log('记录IOS不能看的视频成功', res.video)
|
||||
}).catch(() => { console.log('数据报错') })
|
||||
this.UnlockChangeVideo() // 解锁按钮
|
||||
uni.showModal({
|
||||
content: '抱歉,苹果手机不支持此加密视频格式,您可以在安卓端观看本视频',
|
||||
|
||||
Reference in New Issue
Block a user