feat: 牛牛单独限红 - 新增limit_low_nn/limit_high_nn字段,代理端添加/编辑代理和会员支持牛牛限红设置,语言包三语支持
This commit is contained in:
@@ -253,6 +253,8 @@ class Agent Extends Common{
|
||||
$limit_high_tie = round(Request::instance()->post('limit_high_tie'),2);
|
||||
$limit_low_pair = round(Request::instance()->post('limit_low_pair'),2);
|
||||
$limit_high_pair = round(Request::instance()->post('limit_high_pair'),2);
|
||||
$limit_low_nn = round(Request::instance()->post('limit_low_nn'),2);
|
||||
$limit_high_nn = round(Request::instance()->post('limit_high_nn'),2);
|
||||
$agent_ximalv = round(Request::instance()->post('agent_ximalv'),2);
|
||||
$agent_ximalv_dt = round(Request::instance()->post('agent_ximalv_dt'),2);
|
||||
$agent_ximalv_nn = round(Request::instance()->post('agent_ximalv_nn'),2);
|
||||
@@ -327,6 +329,15 @@ class Agent Extends Common{
|
||||
if($limit_low_pair > $limit_high_pair && $limit_low_pair > 0 && $limit_high_pair > 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['min_pair_limit_bigger_than_max_tie_limit']]));
|
||||
}
|
||||
if($limit_low_nn < 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['min_nn_limit_0']]));
|
||||
}
|
||||
if($limit_high_nn < 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['max_nn_limit_0']]));
|
||||
}
|
||||
if($limit_low_nn > $limit_high_nn && $limit_low_nn > 0 && $limit_high_nn > 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['min_nn_limit_bigger_than_max']]));
|
||||
}
|
||||
if($limit_low < $agentParent['limit_low'] || $limit_low > $agentParent['limit_high'] || $limit_high < $agentParent['limit_low'] || $limit_high > $agentParent['limit_high']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['limit_cannot_bigger'].' '.$agentParent['limit_low'].'-'.$agentParent['limit_high']]));
|
||||
}
|
||||
@@ -336,6 +347,11 @@ class Agent Extends Common{
|
||||
if($limit_low_pair < $agentParent['limit_low_pair'] || $limit_low_pair > $agentParent['limit_high_pair'] || $limit_high_pair < $agentParent['limit_low_pair'] || $limit_high_pair > $agentParent['limit_high_pair']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['pair_limit_cannot_bigger'].' '.$agentParent['limit_low_pair'].'-'.$agentParent['limit_high_pair']]));
|
||||
}
|
||||
if($limit_low_nn > 0 && $limit_high_nn > 0 && $agentParent['limit_low_nn'] > 0 && $agentParent['limit_high_nn'] > 0){
|
||||
if($limit_low_nn < $agentParent['limit_low_nn'] || $limit_low_nn > $agentParent['limit_high_nn'] || $limit_high_nn < $agentParent['limit_low_nn'] || $limit_high_nn > $agentParent['limit_high_nn']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['nn_limit_cannot_bigger'].' '.$agentParent['limit_low_nn'].'-'.$agentParent['limit_high_nn']]));
|
||||
}
|
||||
}
|
||||
if($agent_ximalv < 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['baccarat_limit_0']]));
|
||||
}
|
||||
@@ -395,6 +411,8 @@ class Agent Extends Common{
|
||||
$user_data['limit_high_tie'] = $limit_high_tie;
|
||||
$user_data['limit_low_pair'] = $limit_low_pair;
|
||||
$user_data['limit_high_pair'] = $limit_high_pair;
|
||||
$user_data['limit_low_nn'] = $limit_low_nn;
|
||||
$user_data['limit_high_nn'] = $limit_high_nn;
|
||||
$user_data['bet_type'] = $bet_type;
|
||||
$user_data['reg_time'] = time();
|
||||
$ip = '0.0.0.0';
|
||||
@@ -533,6 +551,8 @@ class Agent Extends Common{
|
||||
$limit_high_tie = round(Request::instance()->post('limit_high_tie'),2);
|
||||
$limit_low_pair = round(Request::instance()->post('limit_low_pair'),2);
|
||||
$limit_high_pair = round(Request::instance()->post('limit_high_pair'),2);
|
||||
$limit_low_nn = round(Request::instance()->post('limit_low_nn'),2);
|
||||
$limit_high_nn = round(Request::instance()->post('limit_high_nn'),2);
|
||||
$agent_ximalv = round(Request::instance()->post('agent_ximalv'),2);
|
||||
$agent_ximalv_dt = round(Request::instance()->post('agent_ximalv_dt'),2);
|
||||
$agent_ximalv_nn = round(Request::instance()->post('agent_ximalv_nn'),2);
|
||||
@@ -594,6 +614,20 @@ class Agent Extends Common{
|
||||
if($limit_low_pair < $agentParent['limit_low_pair'] || $limit_low_pair > $agentParent['limit_high_pair'] || $limit_high_pair < $agentParent['limit_low_pair'] || $limit_high_pair > $agentParent['limit_high_pair']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['pair_limit_cannot_bigger'].' '.$agentParent['limit_low_pair'].'-'.$agentParent['limit_high_pair'].'范围']));
|
||||
}
|
||||
if($limit_low_nn < 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['min_nn_limit_0']]));
|
||||
}
|
||||
if($limit_high_nn < 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['max_nn_limit_0']]));
|
||||
}
|
||||
if($limit_low_nn > $limit_high_nn && $limit_low_nn > 0 && $limit_high_nn > 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['min_nn_limit_bigger_than_max']]));
|
||||
}
|
||||
if($limit_low_nn > 0 && $limit_high_nn > 0 && $agentParent['limit_low_nn'] > 0 && $agentParent['limit_high_nn'] > 0){
|
||||
if($limit_low_nn < $agentParent['limit_low_nn'] || $limit_low_nn > $agentParent['limit_high_nn'] || $limit_high_nn < $agentParent['limit_low_nn'] || $limit_high_nn > $agentParent['limit_high_nn']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['nn_limit_cannot_bigger'].' '.$agentParent['limit_low_nn'].'-'.$agentParent['limit_high_nn']]));
|
||||
}
|
||||
}
|
||||
if($agent_ximalv > $agentParent['agent_ximalv']){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['baccarat_cannot_bigger_agent'].' '.$agentParent['agent_ximalv'].'!']));
|
||||
}
|
||||
@@ -662,6 +696,8 @@ class Agent Extends Common{
|
||||
$user_data['limit_high_tie'] = $limit_high_tie;
|
||||
$user_data['limit_low_pair'] = $limit_low_pair;
|
||||
$user_data['limit_high_pair'] = $limit_high_pair;
|
||||
$user_data['limit_low_nn'] = $limit_low_nn;
|
||||
$user_data['limit_high_nn'] = $limit_high_nn;
|
||||
$user_data['agent_ximalv'] = $agent_ximalv;
|
||||
$user_data['agent_ximalv_dt'] = $agent_ximalv_dt;
|
||||
$user_data['agent_ximalv_nn'] = $agent_ximalv_nn;
|
||||
|
||||
Reference in New Issue
Block a user