diff --git a/application/admin/controller/Pcapi.php b/application/admin/controller/Pcapi.php index e48c724..6f55174 100755 --- a/application/admin/controller/Pcapi.php +++ b/application/admin/controller/Pcapi.php @@ -905,6 +905,7 @@ class Pcapi extends Controller{ //桌子信息 $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['player_1_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_1' => 1))->count(); $table['player_2_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_2' => 1))->count(); $table['player_3_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_3' => 1))->count(); @@ -1046,6 +1047,7 @@ class Pcapi extends Controller{ $boot = Db::connect('DB2')->name($bootTabTable)->where('table_id',$table['id'])->order('id DESC')->find(); if($boot){ $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['player_1_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_1' => 1))->count(); $table['player_2_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_2' => 1))->count(); $table['player_3_count'] = Db::connect('DB2')->name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_3' => 1))->count(); @@ -1075,6 +1077,7 @@ class Pcapi extends Controller{ $table['bet_amount_msg']['banker_pair_amount'] = 0; $table['bet_amount_msg']['player_pair_amount'] = 0; $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['palyerCount'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 2))->count(); $table['tieCount'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 3))->count(); $table['bankerCount'] = Db::connect('DB2')->name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 1))->count(); diff --git a/application/onlinechip/controller/Pcapi.php b/application/onlinechip/controller/Pcapi.php index 8a9391f..b3bc3b6 100755 --- a/application/onlinechip/controller/Pcapi.php +++ b/application/onlinechip/controller/Pcapi.php @@ -1257,6 +1257,7 @@ class Pcapi extends Controller{ //桌子信息 $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['player_1_count'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_1' => 1))->count(); $table['player_2_count'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_2' => 1))->count(); $table['player_3_count'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'win_player_3' => 1))->count(); @@ -1399,6 +1400,7 @@ class Pcapi extends Controller{ $boot = Db::name($bootTabTable)->where('table_id',$table['id'])->order('id DESC')->find(); if($boot){ $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['player_1_count'] = Db::name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_1' => 1))->count(); $table['player_2_count'] = Db::name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_2' => 1))->count(); $table['player_3_count'] = Db::name($numberTabTable)->where(array('boot_id' => $boot['id'], 'win_player_3' => 1))->count(); @@ -1642,6 +1644,7 @@ class Pcapi extends Controller{ $table['bet_amount_msg']['banker_pair_amount'] = 0; $table['bet_amount_msg']['player_pair_amount'] = 0; $table['boot_num'] = $boot['boot_num']; + $table['boot_id'] = $boot['id']; $table['playerCount'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 2))->count(); $table['tieCount'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 3))->count(); $table['bankerCount'] = Db::name($numberTabTable)->where(array('table_id' => $table['id'], 'boot_id' => $boot['id'], 'result' => 1))->count();