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:
parent
c7355bb760
commit
1ce6c3d780
@ -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;
|
||||
|
||||
@ -104,6 +104,8 @@ class Betinfo extends Controller{
|
||||
$price = $user_info['price_nn'];
|
||||
}elseif($winPoint == 11){
|
||||
$price = $user_info['price_5n'];
|
||||
}elseif($winPoint == 12){
|
||||
$price = $user_info['price_bomb'];
|
||||
}else{
|
||||
$price = 1;
|
||||
}
|
||||
|
||||
@ -811,6 +811,7 @@ class Pcapi extends Controller{
|
||||
$value['price_n7_n9'] = $user['price_n7_n9'];
|
||||
$value['price_nn'] = $user['price_nn'];
|
||||
$value['price_5n'] = $user['price_5n'];
|
||||
$value['price_bomb'] = $user['price_bomb'];
|
||||
$value['price_tc_n1'] = $user['price_tc_n1'];
|
||||
$value['price_tc_n2'] = $user['price_tc_n2'];
|
||||
$value['price_tc_n3'] = $user['price_tc_n3'];
|
||||
@ -2502,6 +2503,7 @@ class Pcapi extends Controller{
|
||||
$insertData['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$insertData['price_nn'] = $agentParent['price_nn'];
|
||||
$insertData['price_5n'] = $agentParent['price_5n'];
|
||||
$insertData['price_bomb'] = $agentParent['price_bomb'];
|
||||
$insertData['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$insertData['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$insertData['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
@ -2699,6 +2701,7 @@ class Pcapi extends Controller{
|
||||
$insertData['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$insertData['price_nn'] = $agentParent['price_nn'];
|
||||
$insertData['price_5n'] = $agentParent['price_5n'];
|
||||
$insertData['price_bomb'] = $agentParent['price_bomb'];
|
||||
$insertData['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$insertData['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$insertData['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
|
||||
@ -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;
|
||||
|
||||
// 修改会员资料
|
||||
|
||||
@ -343,6 +343,14 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押四条赔率:</label>
|
||||
<div class="controls">
|
||||
<input id="price_bomb" name="price_bomb" type="text" value="4.85" maxlength="10" class="required"><span class="help-inline">
|
||||
<font color="red"> * 牛牛 </font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押牛一赔率:</label>
|
||||
<div class="controls">
|
||||
@ -547,6 +555,7 @@
|
||||
query.price_n7_n9 = $('#price_n7_n9').val();
|
||||
query.price_nn = $('#price_nn').val();
|
||||
query.price_5n = $('#price_5n').val();
|
||||
query.price_bomb = $('#price_bomb').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
query.price_tc_n1 = $('#price_tc_n1').val();
|
||||
query.price_tc_n2 = $('#price_tc_n2').val();
|
||||
@ -705,6 +714,10 @@
|
||||
layer.alert("押五公赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.price_bomb <= 0){
|
||||
layer.alert("押四条赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length <= 0){
|
||||
layer.alert("日赢上限不能为空");
|
||||
return false;
|
||||
|
||||
@ -341,6 +341,14 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押四条赔率:</label>
|
||||
<div class="controls">
|
||||
<input id="price_bomb" name="price_bomb" type="text" value="{$agent.price_bomb}" maxlength="10" class="required"><span class="help-inline">
|
||||
<font color="red"> * 牛牛 </font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押牛一赔率:</label>
|
||||
<div class="controls">
|
||||
@ -544,6 +552,7 @@
|
||||
query.price_n7_n9 = $('#price_n7_n9').val();
|
||||
query.price_nn = $('#price_nn').val();
|
||||
query.price_5n = $('#price_5n').val();
|
||||
query.price_bomb = $('#price_bomb').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
query.price_tc_n1 = $('#price_tc_n1').val();
|
||||
query.price_tc_n2 = $('#price_tc_n2').val();
|
||||
@ -693,6 +702,10 @@
|
||||
layer.alert("押五公赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.price_bomb <= 0){
|
||||
layer.alert("押四条赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length <= 0){
|
||||
layer.alert("日赢上限不能为空");
|
||||
return false;
|
||||
|
||||
@ -84,7 +84,7 @@
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.win_limit}</td>
|
||||
<th>
|
||||
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n0-n6="{$vo.price_n0_n6}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}" price-tc-n1="{$vo.price_tc_n1}" price-tc-n2="{$vo.price_tc_n2}" price-tc-n3="{$vo.price_tc_n3}" price-tc-n4="{$vo.price_tc_n4}" price-tc-n5="{$vo.price_tc_n5}" price-tc-n6="{$vo.price_tc_n6}" price-tc-n7="{$vo.price_tc_n7}" price-tc-n8="{$vo.price_tc_n8}" price-tc-n9="{$vo.price_tc_n9}" price-tc-nn="{$vo.price_tc_nn}" price-tc-bz="{$vo.price_tc_bz}" price-tc-ths="{$vo.price_tc_ths}" price-tc-hjths="{$vo.price_tc_hjths}">
|
||||
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n0-n6="{$vo.price_n0_n6}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}" price-bomb="{$vo.price_bomb}" price-tc-n1="{$vo.price_tc_n1}" price-tc-n2="{$vo.price_tc_n2}" price-tc-n3="{$vo.price_tc_n3}" price-tc-n4="{$vo.price_tc_n4}" price-tc-n5="{$vo.price_tc_n5}" price-tc-n6="{$vo.price_tc_n6}" price-tc-n7="{$vo.price_tc_n7}" price-tc-n8="{$vo.price_tc_n8}" price-tc-n9="{$vo.price_tc_n9}" price-tc-nn="{$vo.price_tc_nn}" price-tc-bz="{$vo.price_tc_bz}" price-tc-ths="{$vo.price_tc_ths}" price-tc-hjths="{$vo.price_tc_hjths}">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;" >查看</span>
|
||||
</a>
|
||||
</th>
|
||||
@ -119,6 +119,7 @@
|
||||
<tr><th>押牛7-牛9赔率:</th><td id="show_price_n7_n9"></td></tr>
|
||||
<tr><th>押牛牛赔率:</th><td id="show_price_nn"></td></tr>
|
||||
<tr><th>押五公赔率:</th><td id="show_price_5n"></td></tr>
|
||||
<tr><th>押四条赔率:</th><td id="show_price_bomb"></td></tr>
|
||||
<tr><th>押牛一赔率(三卡):</th><td id="show_price_tc_n1"></td></tr>
|
||||
<tr><th>押牛二赔率(三卡):</th><td id="show_price_tc_n2"></td></tr>
|
||||
<tr><th>押牛三赔率(三卡):</th><td id="show_price_tc_n3"></td></tr>
|
||||
@ -216,6 +217,7 @@
|
||||
var price_n7_n9 = $(obj).attr('price-n7-n9');
|
||||
var price_nn = $(obj).attr('price-nn');
|
||||
var price_5n = $(obj).attr('price-5n');
|
||||
var price_bomb = $(obj).attr('price-bomb');
|
||||
var price_tc_n1 = $(obj).attr('price-tc-n1');
|
||||
var price_tc_n2 = $(obj).attr('price-tc-n2');
|
||||
var price_tc_n3 = $(obj).attr('price-tc-n3');
|
||||
@ -243,6 +245,7 @@
|
||||
$('#show_price_n7_n9').html(price_n7_n9);
|
||||
$('#show_price_nn').html(price_nn);
|
||||
$('#show_price_5n').html(price_5n);
|
||||
$('#show_price_bomb').html(price_bomb);
|
||||
$('#show_price_tc_n1').html(price_tc_n1);
|
||||
$('#show_price_tc_n2').html(price_tc_n2);
|
||||
$('#show_price_tc_n3').html(price_tc_n3);
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
<td>{$vo.maliang}</td>
|
||||
<td>{$vo.win_limit}</td>
|
||||
<th>
|
||||
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}">
|
||||
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}" price-bomb="{$vo.price_bomb}">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;" >查看</span>
|
||||
</a>
|
||||
</th>
|
||||
@ -151,6 +151,7 @@
|
||||
<tr><th>押牛7-牛9赔率:</th><td id="show_price_n7_n9"></td></tr>
|
||||
<tr><th>押牛牛赔率:</th><td id="show_price_nn"></td></tr>
|
||||
<tr><th>押五公赔率:</th><td id="show_price_5n"></td></tr>
|
||||
<tr><th>押四条赔率:</th><td id="show_price_bomb"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="alert-footer">
|
||||
@ -334,6 +335,7 @@
|
||||
var price_n7_n9 = $(obj).attr('price-n7-n9');
|
||||
var price_nn = $(obj).attr('price-nn');
|
||||
var price_5n = $(obj).attr('price-5n');
|
||||
var price_bomb = $(obj).attr('price-bomb');
|
||||
|
||||
// 显示赔率数据
|
||||
$('#show_price_username').html(price_username+" 的赔率");
|
||||
@ -347,6 +349,7 @@
|
||||
$('#show_price_n7_n9').html(price_n7_n9);
|
||||
$('#show_price_nn').html(price_nn);
|
||||
$('#show_price_5n').html(price_5n);
|
||||
$('#show_price_bomb').html(price_bomb);
|
||||
|
||||
$('#alert_price').show();
|
||||
}
|
||||
|
||||
@ -221,6 +221,14 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押四条赔率:</label>
|
||||
<div class="controls">
|
||||
<input id="price_bomb" name="price_bomb" type="text" value="4.85" maxlength="10" class="required"><span class="help-inline">
|
||||
<font color="red"> * 牛牛 </font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">日赢上限:</label>
|
||||
<div class="controls">
|
||||
@ -281,6 +289,7 @@
|
||||
query.price_n7_n9 = $('#price_n7_n9').val();
|
||||
query.price_nn = $('#price_nn').val();
|
||||
query.price_5n = $('#price_5n').val();
|
||||
query.price_bomb = $('#price_bomb').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
|
||||
// 验证数据
|
||||
@ -360,6 +369,10 @@
|
||||
layer.alert("押五公赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.price_bomb <= 0){
|
||||
layer.alert("押四条赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length <= 0){
|
||||
layer.alert("日赢上限不能为空");
|
||||
return false;
|
||||
|
||||
@ -212,6 +212,14 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">押四条赔率:</label>
|
||||
<div class="controls">
|
||||
<input id="price_bomb" name="price_bomb" type="text" value="{$player.price_bomb}" maxlength="10" class="required"><span class="help-inline">
|
||||
<font color="red"> * 牛牛 </font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">日赢上限:</label>
|
||||
<div class="controls">
|
||||
@ -276,6 +284,7 @@
|
||||
query.price_n7_n9 = $('#price_n7_n9').val();
|
||||
query.price_nn = $('#price_nn').val();
|
||||
query.price_5n = $('#price_5n').val();
|
||||
query.price_bomb = $('#price_bomb').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
|
||||
// 验证数据
|
||||
@ -338,6 +347,10 @@
|
||||
layer.alert("押五公赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.price_bomb <= 0){
|
||||
layer.alert("押四条赔率必须大于0");
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length <= 0){
|
||||
layer.alert("日赢上限不能为空");
|
||||
return false;
|
||||
|
||||
@ -127,6 +127,7 @@
|
||||
<tr><th>押牛7-牛9赔率:</th><td id="show_price_n7_n9"></td></tr>
|
||||
<tr><th>押牛牛赔率:</th><td id="show_price_nn"></td></tr>
|
||||
<tr><th>押五公赔率:</th><td id="show_price_5n"></td></tr>
|
||||
<tr><th>押四条赔率:</th><td id="show_price_bomb"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="alert-footer">
|
||||
|
||||
@ -424,6 +424,7 @@ class Agent Extends Common{
|
||||
$user_data['price_n7_n9'] = $user_info['price_n7_n9'];
|
||||
$user_data['price_nn'] = $user_info['price_nn'];
|
||||
$user_data['price_5n'] = $user_info['price_5n'];
|
||||
$user_data['price_bomb'] = $user_info['price_bomb'];
|
||||
$user_data['price_tc_n1'] = $user_info['price_tc_n1'];
|
||||
$user_data['price_tc_n2'] = $user_info['price_tc_n2'];
|
||||
$user_data['price_tc_n3'] = $user_info['price_tc_n3'];
|
||||
|
||||
@ -209,6 +209,7 @@ class Login extends Controller {
|
||||
$insertData['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$insertData['price_nn'] = $agentParent['price_nn'];
|
||||
$insertData['price_5n'] = $agentParent['price_5n'];
|
||||
$insertData['price_bomb'] = $agentParent['price_bomb'];
|
||||
$insertData['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$insertData['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$insertData['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
|
||||
@ -437,6 +437,7 @@ class Player Extends Common{
|
||||
$user_data['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$user_data['price_nn'] = $agentParent['price_nn'];
|
||||
$user_data['price_5n'] = $agentParent['price_5n'];
|
||||
$user_data['price_bomb'] = $agentParent['price_bomb'];
|
||||
$user_data['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$user_data['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$user_data['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
|
||||
@ -135,6 +135,12 @@
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_5n" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_5n}">
|
||||
</div>
|
||||
<label for="price_bomb" class="layui-form-label">押四条赔率</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_bomb" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_bomb}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_dt" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_dt" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tie_dt}">
|
||||
|
||||
@ -180,6 +180,12 @@
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_5n" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_5n}">
|
||||
</div>
|
||||
<label for="price_bomb" class="layui-form-label">押四条赔率</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_bomb" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_bomb}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_dt" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_dt" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tie_dt}">
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -1163,6 +1163,7 @@ class Pcapi extends Controller{
|
||||
$value['price_n7_n9'] = $user['price_n7_n9'];
|
||||
$value['price_nn'] = $user['price_nn'];
|
||||
$value['price_5n'] = $user['price_5n'];
|
||||
$value['price_bomb'] = $user['price_bomb'];
|
||||
$value['price_tc_n1'] = $user['price_tc_n1'];
|
||||
$value['price_tc_n2'] = $user['price_tc_n2'];
|
||||
$value['price_tc_n3'] = $user['price_tc_n3'];
|
||||
@ -3415,6 +3416,7 @@ class Pcapi extends Controller{
|
||||
$insertData['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$insertData['price_nn'] = $agentParent['price_nn'];
|
||||
$insertData['price_5n'] = $agentParent['price_5n'];
|
||||
$insertData['price_bomb'] = $agentParent['price_bomb'];
|
||||
$insertData['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$insertData['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$insertData['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
@ -3630,6 +3632,7 @@ class Pcapi extends Controller{
|
||||
$insertData['price_n7_n9'] = $agentParent['price_n7_n9'];
|
||||
$insertData['price_nn'] = $agentParent['price_nn'];
|
||||
$insertData['price_5n'] = $agentParent['price_5n'];
|
||||
$insertData['price_bomb'] = $agentParent['price_bomb'];
|
||||
$insertData['price_tc_n1'] = $agentParent['price_tc_n1'];
|
||||
$insertData['price_tc_n2'] = $agentParent['price_tc_n2'];
|
||||
$insertData['price_tc_n3'] = $agentParent['price_tc_n3'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user