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:
@@ -158,6 +158,7 @@ class Agent extends Common{
|
||||
$price_n7_n9 = Request::instance()->post('price_n7_n9');
|
||||
$price_nn = Request::instance()->post('price_nn');
|
||||
$price_5n = Request::instance()->post('price_5n');
|
||||
$price_bomb = Request::instance()->post('price_bomb');
|
||||
$win_limit = intval(Request::instance()->post('win_limit'));
|
||||
|
||||
$price_tc_n1 = round(Request::instance()->post('price_tc_n1'),2);
|
||||
@@ -306,6 +307,9 @@ class Agent extends Common{
|
||||
if($price_5n <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押五公赔率必须大于0!']));
|
||||
}
|
||||
if($price_bomb <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押四条赔率必须大于0!']));
|
||||
}
|
||||
if($price_tc_n1 <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押牛一(三卡牛牛)赔率必须大于0!']));
|
||||
}
|
||||
@@ -413,6 +417,7 @@ class Agent extends Common{
|
||||
$data['price_n7_n9'] = $price_n7_n9;
|
||||
$data['price_nn'] = $price_nn;
|
||||
$data['price_5n'] = $price_5n;
|
||||
$data['price_bomb'] = $price_bomb;
|
||||
$data['win_limit'] = $win_limit;
|
||||
$data['price_tc_n1'] = $price_tc_n1;
|
||||
$data['price_tc_n2'] = $price_tc_n2;
|
||||
@@ -510,6 +515,7 @@ class Agent extends Common{
|
||||
$price_n7_n9 = Request::instance()->post('price_n7_n9');
|
||||
$price_nn = Request::instance()->post('price_nn');
|
||||
$price_5n = Request::instance()->post('price_5n');
|
||||
$price_bomb = Request::instance()->post('price_bomb');
|
||||
$win_limit = Request::instance()->post('win_limit');
|
||||
$price_tc_n1 = round(Request::instance()->post('price_tc_n1'),2);
|
||||
$price_tc_n2 = round(Request::instance()->post('price_tc_n2'),2);
|
||||
@@ -658,6 +664,9 @@ class Agent extends Common{
|
||||
if($price_5n <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押五公赔率必须大于0!']));
|
||||
}
|
||||
if($price_bomb <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押四条赔率必须大于0!']));
|
||||
}
|
||||
if($price_tc_n1 <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>'押牛一(三卡牛牛)赔率必须大于0!']));
|
||||
}
|
||||
@@ -780,6 +789,7 @@ class Agent extends Common{
|
||||
$data['price_n7_n9'] = $price_n7_n9;
|
||||
$data['price_nn'] = $price_nn;
|
||||
$data['price_5n'] = $price_5n;
|
||||
$data['price_bomb'] = $price_bomb;
|
||||
$data['win_limit'] = $win_limit;
|
||||
$data['price_tc_n1'] = $price_tc_n1;
|
||||
$data['price_tc_n2'] = $price_tc_n2;
|
||||
|
||||
Reference in New Issue
Block a user