feat: 五公杀赔从5倍改为4倍,四条杀赔保持5倍

This commit is contained in:
li
2026-02-11 19:53:08 +08:00
parent 4d0154f3ac
commit 90d348d77a
7 changed files with 32 additions and 28 deletions
+4 -2
View File
@@ -96,14 +96,16 @@ class ToBetNnService
'withhold_player_3_banker_times',
];
foreach ($betTotalAmount AS $k => $v){
if ($v > $userInfo['limit_high'] && !in_array($k,$withholdKeys)){
$nnLimitHigh = ($userInfo['limit_high_nn'] > 0) ? $userInfo['limit_high_nn'] : $userInfo['limit_high'];
if ($v > $nnLimitHigh && !in_array($k,$withholdKeys)){
$ws->emit('toBet',['status' => false, 'table_id' => $tableInfo['id'], 'msg' => 'exceeds_limit_user']);
SocketSession::resetRepeat($fd,'user','isToBet');
return;
}
}
foreach ($betTotalAmount AS $k => $v){
if ($v > 0 && $v < $userInfo['limit_low'] && !in_array($k,$withholdKeys)){
$nnLimitLow = ($userInfo['limit_low_nn'] > 0) ? $userInfo['limit_low_nn'] : $userInfo['limit_low'];
if ($v > 0 && $v < $nnLimitLow && !in_array($k,$withholdKeys)){
$ws->emit('toBet',['status' => false, 'table_id' => $tableInfo['id'], 'msg' => 'under_limit_user']);
SocketSession::resetRepeat($fd,'user','isToBet');
return;
+4 -2
View File
@@ -97,14 +97,16 @@ class ToBetTcService
'withhold_player_3_banker_times',
];
foreach ($betTotalAmount AS $k => $v){
if ($v > $userInfo['limit_high'] && !in_array($k,$withholdKeys)){
$nnLimitHigh = ($userInfo['limit_high_nn'] > 0) ? $userInfo['limit_high_nn'] : $userInfo['limit_high'];
if ($v > $nnLimitHigh && !in_array($k,$withholdKeys)){
$ws->emit('toBet',['status' => false, 'table_id' => $tableInfo['id'], 'msg' => 'exceeds_limit_user']);
SocketSession::resetRepeat($fd,'user','isToBet');
return;
}
}
foreach ($betTotalAmount AS $k => $v){
if ($v > 0 && $v < $userInfo['limit_low'] && !in_array($k,$withholdKeys)){
$nnLimitLow = ($userInfo['limit_low_nn'] > 0) ? $userInfo['limit_low_nn'] : $userInfo['limit_low'];
if ($v > 0 && $v < $nnLimitLow && !in_array($k,$withholdKeys)){
$ws->emit('toBet',['status' => false, 'table_id' => $tableInfo['id'], 'msg' => 'under_limit_user']);
SocketSession::resetRepeat($fd,'user','isToBet');
return;