diff --git a/public/static/deal/js/deal-nn.js b/public/static/deal/js/deal-nn.js index d14176a..43c2ca1 100644 --- a/public/static/deal/js/deal-nn.js +++ b/public/static/deal/js/deal-nn.js @@ -596,7 +596,8 @@ var showCard = function(data){ } var showCardNn = function(data){ if(data.round.bet_status == 2){ - if (data.card_info.length == 0) { + var card_info_arr = data.round.show_card || []; + if (card_info_arr.length == 0) { $('#show_dice').show(); } $(".begincard").fadeIn(function(){ @@ -606,7 +607,7 @@ var showCardNn = function(data){ $(".begincard .box3").animate({"top":"100%","opacity":"1"}); $(".begincard .box4").animate({"top":"100%","opacity":"1"}); }); - card_number_info = data.card_info; + card_number_info = card_info_arr; if(card_number_info.length > 0){ for(var i=0;i