Przeglądaj źródła

13 小双不应该中奖

doge 2 miesięcy temu
rodzic
commit
4c0978c49f
1 zmienionych plików z 1 dodań i 30 usunięć
  1. 1 30
      app/Services/BetService.php

+ 1 - 30
app/Services/BetService.php

@@ -920,37 +920,8 @@ class BetService extends BaseService
                         RebateService::updateEffectiveBettingAmount($rebate, $v['amount']);
                         ActivityUserService::updateBettingAmount($v['member_id'],$v['amount']);
                     }
+                    // 未命中的组合不应用 13/14 特殊赔率。
                     $profit = 0;
-                    //玩 大单 小单 大双 小双 :如果开出13和14 总注小于10000 1.5赔率含本,大于等于10000退本金。
-                    if (in_array('13操', $awards) || in_array('14操', $awards)) {
-                        $amount = $v['amount'];
-                        $odds = 0;
-                        // 13 14特殊处理倍率
-                        if (in_array($number, self::$OTHER_BET_2)) {
-                            if ($sum < 10000) {
-                                $odds = 1.5;
-                            } else {
-                                $odds = 1;
-                            }
-                        }
-
-                        $profit = bcmul($amount, $odds, 2); // 保留两位小数
-
-                        if ($profit > 1000000) {
-                            $profit = 1000000; // 单注最高奖金1000000
-                        }
-
-                        $item['lottery_status'] = self::model()::STATUS_WIN;//中奖
-                        $item['win_amount'] = $profit;
-                        $total_amount += $profit;
-
-                        $yl = bcsub($profit, $amount, 2); // 盈利
-                        $item['profit_and_loss'] = $yl;
-                        $walletInfo = WalletService::findOne(['member_id' => $v['member_id']]);
-                        $balance = $walletInfo['available_balance'];
-                        WalletService::updateBalance($v['member_id'], $profit);
-                        BalanceLogService::addLog($v['member_id'], $profit, $balance, ($balance + $profit), '中奖', $v['id'], "盈利:{$yl}");
-                    }
 
                     if (isset($openList[$v['member_id']])) {
                         $openList[$v['member_id']]['member_id'] = $v['member_id'];