feat: 牛牛新增四条(炸弹)赔率配置 price_bomb

- 后台管理: Player/Agent 控制器新增接收、验证、保存
- 后台页面: player/agent 添加/编辑/列表页新增赔率字段
- 代理端: 继承/展示 price_bomb
- 预测赔率: jk/Pcapi/onlinechip 新增 bomb_forecast
- Betinfo: 新增 result==12 赔率查询

数据库需执行:
ALTER TABLE cg_user ADD COLUMN price_bomb float(5,2) NOT NULL DEFAULT 4.85 COMMENT '四条赔率' AFTER price_5n;
This commit is contained in:
li
2026-02-11 17:32:41 +08:00
parent c7355bb760
commit 1ce6c3d780
18 changed files with 113 additions and 2 deletions
+9
View File
@@ -275,16 +275,19 @@ class Index Extends Common{
$v['player_1_times_n7_n9_forecast'] += to_number($value['amount_player_1_times'] * $value['price_n7_n9']);
$v['player_1_times_nn_forecast'] += to_number($value['amount_player_1_times'] * $value['price_nn']);
$v['player_1_times_5n_forecast'] += to_number($value['amount_player_1_times'] * $value['price_5n']);
$v['player_1_times_bomb_forecast'] += to_number($value['amount_player_1_times'] * $value['price_bomb']);
$v['player_2_forecast'] += to_number($value['amount_player_2'] * 0.96);
$v['player_2_times_n1_n6_forecast'] += to_number($value['amount_player_2_times'] * 0.96);
$v['player_2_times_n7_n9_forecast'] += to_number($value['amount_player_2_times'] * $value['price_n7_n9']);
$v['player_2_times_nn_forecast'] += to_number($value['amount_player_2_times'] * $value['price_nn']);
$v['player_2_times_5n_forecast'] += to_number($value['amount_player_2_times'] * $value['price_5n']);
$v['player_2_times_bomb_forecast'] += to_number($value['amount_player_2_times'] * $value['price_bomb']);
$v['player_3_forecast'] += to_number($value['amount_player_3'] * 0.96);
$v['player_3_times_n1_n6_forecast'] += to_number($value['amount_player_3_times'] * 0.96);
$v['player_3_times_n7_n9_forecast'] += to_number($value['amount_player_3_times'] * $value['price_n7_n9']);
$v['player_3_times_nn_forecast'] += to_number($value['amount_player_3_times'] * $value['price_nn']);
$v['player_3_times_5n_forecast'] += to_number($value['amount_player_3_times'] * $value['price_5n']);
$v['player_3_times_bomb_forecast'] += to_number($value['amount_player_3_times'] * $value['price_bomb']);
}elseif($v['game_id'] == 5){
if($value['amount_player_1'] > 0){
$bet_contect .= '闲一平倍:'.round($value['amount_player_1'],2).' ';
@@ -695,16 +698,19 @@ class Index Extends Common{
$v['player_1_times_n7_n9_forecast'] += round($value['amount_player_1_times'] * $value['price_n7_n9'],2);
$v['player_1_times_nn_forecast'] += round($value['amount_player_1_times'] * $value['price_nn'],2);
$v['player_1_times_5n_forecast'] += round($value['amount_player_1_times'] * $value['price_5n'],2);
$v['player_1_times_bomb_forecast'] += round($value['amount_player_1_times'] * $value['price_bomb'],2);
$v['player_2_forecast'] += round($value['amount_player_2'] * 0.96,2);
$v['player_2_times_n1_n6_forecast'] += round($value['amount_player_2_times'] * 0.96,2);
$v['player_2_times_n7_n9_forecast'] += round($value['amount_player_2_times'] * $value['price_n7_n9'],2);
$v['player_2_times_nn_forecast'] += round($value['amount_player_2_times'] * $value['price_nn'],2);
$v['player_2_times_5n_forecast'] += round($value['amount_player_2_times'] * $value['price_5n'],2);
$v['player_2_times_bomb_forecast'] += round($value['amount_player_2_times'] * $value['price_bomb'],2);
$v['player_3_forecast'] += round($value['amount_player_3'] * 0.96,2);
$v['player_3_times_n1_n6_forecast'] += round($value['amount_player_3_times'] * 0.96,2);
$v['player_3_times_n7_n9_forecast'] += round($value['amount_player_3_times'] * $value['price_n7_n9'],2);
$v['player_3_times_nn_forecast'] += round($value['amount_player_3_times'] * $value['price_nn'],2);
$v['player_3_times_5n_forecast'] += round($value['amount_player_3_times'] * $value['price_5n'],2);
$v['player_3_times_bomb_forecast'] += round($value['amount_player_3_times'] * $value['price_bomb'],2);
}elseif($v['game_id'] == 5){
if($value['amount_player_1'] > 0){
$bet_contect .= '闲一平倍:'.round($value['amount_player_1'],2).' ';
@@ -1089,16 +1095,19 @@ class Index Extends Common{
$new_table_info['player_1_times_n7_n9_forecast'] += to_number($value['amount_player_1_times'] * $value['price_n7_n9']);
$new_table_info['player_1_times_nn_forecast'] += to_number($value['amount_player_1_times'] * $value['price_nn']);
$new_table_info['player_1_times_5n_forecast'] += to_number($value['amount_player_1_times'] * $value['price_5n']);
$new_table_info['player_1_times_bomb_forecast'] += to_number($value['amount_player_1_times'] * $value['price_bomb']);
$new_table_info['player_2_forecast'] += to_number($value['amount_player_2'] * 0.96);
$new_table_info['player_2_times_n1_n6_forecast'] += to_number($value['amount_player_2_times'] * 0.96);
$new_table_info['player_2_times_n7_n9_forecast'] += to_number($value['amount_player_2_times'] * $value['price_n7_n9']);
$new_table_info['player_2_times_nn_forecast'] += to_number($value['amount_player_2_times'] * $value['price_nn']);
$new_table_info['player_2_times_5n_forecast'] += to_number($value['amount_player_2_times'] * $value['price_5n']);
$new_table_info['player_2_times_bomb_forecast'] += to_number($value['amount_player_2_times'] * $value['price_bomb']);
$new_table_info['player_3_forecast'] += to_number($value['amount_player_3'] * 0.96);
$new_table_info['player_3_times_n1_n6_forecast'] += to_number($value['amount_player_3_times'] * 0.96);
$new_table_info['player_3_times_n7_n9_forecast'] += to_number($value['amount_player_3_times'] * $value['price_n7_n9']);
$new_table_info['player_3_times_nn_forecast'] += to_number($value['amount_player_3_times'] * $value['price_nn']);
$new_table_info['player_3_times_5n_forecast'] += to_number($value['amount_player_3_times'] * $value['price_5n']);
$new_table_info['player_3_times_bomb_forecast'] += to_number($value['amount_player_3_times'] * $value['price_bomb']);
}elseif($table_info['game_id'] == 5){
$new_table_info['player_1_forecast'] += to_number($value['amount_player_1'] * 0.96);
$new_table_info['player_2_forecast'] += to_number($value['amount_player_2'] * 0.96);