fix: 龙虎洗码量改为所有输口之和,和局通杀龙虎计入洗码

This commit is contained in:
2026-05-28 18:04:53 +08:00
parent 477ca7f6c9
commit c3621121ca
+4 -14
View File
@@ -131,39 +131,29 @@ class OpeningDtService
}
$amount = $v['banker_amount'] + $v['player_amount'] + $v['tie_amount'];
$winMoney = 0;
// 双边洗码
$ximaliang = 0;
if($userInfo['type_xima'] == 1){
$ximaliang = abs($v['banker_amount'] - $v['player_amount']);
}
// 龙赢
if ($numberTabInfo['result'] == 1) {
if($v['banker_amount'] > 0){
$winMoney = round($v['banker_amount'] * (1 + $userInfo['price_dragon']),2) + $winMoney;
}
// 单边洗码
if($userInfo['type_xima'] == 2){
$ximaliang = $v['player_amount'];
}
$ximaliang = $v['player_amount'] + $v['tie_amount'];
}
// 虎赢
if ($numberTabInfo['result'] == 2) {
if($v['player_amount'] > 0){
$winMoney = round($v['player_amount'] * (1 + $userInfo['price_tiger']),2) + $winMoney;
}
// 单边洗码
if($userInfo['type_xima'] == 2){
$ximaliang = $v['banker_amount'];
}
$ximaliang = $v['banker_amount'] + $v['tie_amount'];
}
// 和
// 和:通杀龙虎
if ($numberTabInfo['result'] == 3) {
if (Env::get('system.dt_half') == 1) {
$winMoney = round(($v['banker_amount'] + $v['player_amount']) / 2, 2) + $winMoney;
$ximaliang = round(($v['banker_amount'] + $v['player_amount']) / 2, 2);
} else {
$winMoney = $v['banker_amount'] + $v['player_amount'] + $winMoney;
}
$ximaliang = 0;
if ($v['tie_amount'] > 0) {
$winMoney = $v['tie_amount'] * (1 + $userInfo['price_tie_dt']) + $winMoney;
}