😥 紧急修复bug

This commit is contained in:
hunlongyu
2020-05-29 14:29:53 +08:00
parent 7aee9b9fbe
commit 214a267ba5
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "zy",
"version": "1.0.12",
"version": "1.0.13",
"private": true,
"author": {
"name": "Hunlongyu",

View File

@@ -211,7 +211,7 @@ export default {
}
this.changeVideo()
history.find({ detail: this.video.detail }).then(item => {
let index = 1
let index = 0
let time = 0
if (item) {
index = item.index
@@ -224,10 +224,12 @@ export default {
this.right.listData = res.m3u8_urls
const m = res.m3u8_urls
console.log(m, 'm3u8 url')
const arr = []
for (const i of m) {
arr.push(i.split('$')[1])
}
console.log(arr)
this.length = arr.length
this.xg.src = arr[index]
this.showNext = this.length > 1
@@ -252,6 +254,8 @@ export default {
}
this.xg.off('ended')
})
console.log(this.xg.src, 'src')
})
})
},

View File

@@ -22,6 +22,7 @@ macaddress.one((err, mac) => {
const zyPlayer = new ZYPlayer()
zyPlayer.set('os', system)
zyPlayer.set('mac', mac)
zyPlayer.set('times', 1)
zyPlayer.save()
return false
}