From 490df4c4c5e9f07a139b3b65fe86748ddb58b8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E5=B0=8F=E5=8C=97?= Date: Wed, 25 Mar 2026 01:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E7=BC=BA=E5=B0=91bo?= =?UTF-8?q?ot=5Fid=E5=AF=BC=E8=87=B4=E8=B7=AF=E5=AD=90=E6=8D=A2=E9=9D=B4?= =?UTF-8?q?=E5=90=8E=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Pcapi.php | 3 +++ application/onlinechip/controller/Pcapi.php | 3 +++ 2 files changed, 6 insertions(+) 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();