fix: 百家乐/龙虎点数为null时跳过播报,防止播放链断裂
This commit is contained in:
+8
-12
@@ -558,12 +558,10 @@ export default {
|
|||||||
let mp3list = [],
|
let mp3list = [],
|
||||||
win = [],
|
win = [],
|
||||||
text = ""
|
text = ""
|
||||||
mp3list.push(
|
mp3list.push("baccarat_banker")
|
||||||
"baccarat_banker",
|
if(data.round.banker != null) mp3list.push(`${data.round.banker}_point`)
|
||||||
`${data.round.banker}_point`,
|
mp3list.push("baccarat_player")
|
||||||
"baccarat_player",
|
if(data.round.player != null) mp3list.push(`${data.round.player}_point`)
|
||||||
`${data.round.player}_point`
|
|
||||||
)
|
|
||||||
if (data.round.opening == 1) {
|
if (data.round.opening == 1) {
|
||||||
text = Lang.value[Type.value].msg_banker_win
|
text = Lang.value[Type.value].msg_banker_win
|
||||||
win.push("banker")
|
win.push("banker")
|
||||||
@@ -631,12 +629,10 @@ export default {
|
|||||||
let mp3list = [],
|
let mp3list = [],
|
||||||
win = [],
|
win = [],
|
||||||
text = ""
|
text = ""
|
||||||
mp3list.push(
|
mp3list.push("lh_dragon")
|
||||||
"lh_dragon",
|
if(data.round.banker != null) mp3list.push(`${data.round.banker}_point`)
|
||||||
`${data.round.banker}_point`,
|
mp3list.push("lh_tiger")
|
||||||
"lh_tiger",
|
if(data.round.player != null) mp3list.push(`${data.round.player}_point`)
|
||||||
`${data.round.player}_point`
|
|
||||||
)
|
|
||||||
if (data.round.opening == 1) {
|
if (data.round.opening == 1) {
|
||||||
text = Lang.value[Type.value].msg_dragon_win
|
text = Lang.value[Type.value].msg_dragon_win
|
||||||
win.push("banker")
|
win.push("banker")
|
||||||
|
|||||||
Reference in New Issue
Block a user