解锁后播放失败优化

This commit is contained in:
GaoHao 2024-12-27 10:01:05 +08:00
parent 54910d3330
commit 6f3f205a28
1 changed files with 7 additions and 3 deletions

View File

@ -1121,7 +1121,7 @@
httpsRequest.postT("/app/order/payOrders", {
orderId: orderId,
}).then(res => {
console.log("orderIds==" + res)
console.log("orderIds==", res)
if (res.code == 0) {
uni.hideLoading()
uni.showToast({
@ -1393,8 +1393,12 @@
this.videoContext = uni.createVideoContext(this
.videoContextId,
this);
console.log(this.videoContext);
this.videoContext.play();
if (this.videoList[this.current].videoUrl) {
this.videoContext.play();
}else {
console.log("播放失败")
this.getDataList(this.courseId, courseDetailsIds, true);
}
})
}