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:
@@ -180,6 +180,7 @@ class Player 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');
|
||||
|
||||
// 验证数据
|
||||
@@ -250,6 +251,9 @@ class Player 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(empty($win_limit)){
|
||||
die(json_encode(['code'=>0,'msg'=>'日赢上限不能为空!']));
|
||||
}
|
||||
@@ -306,6 +310,7 @@ class Player 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;
|
||||
$insert_id = Db::name('user')->insertGetId($data);
|
||||
if($insert_id){
|
||||
@@ -392,6 +397,7 @@ class Player 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');
|
||||
|
||||
// 验证数据
|
||||
@@ -463,6 +469,9 @@ class Player 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(empty($win_limit)){
|
||||
die(json_encode(['code'=>0,'msg'=>'日赢上限不能为空!']));
|
||||
}
|
||||
@@ -491,6 +500,7 @@ class Player 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;
|
||||
|
||||
// 修改会员资料
|
||||
|
||||
Reference in New Issue
Block a user