修复因缺少boot_id导致路子换靴后恢复
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user