Ken před 2 týdny
rodič
revize
aa66dc46ab
1 změnil soubory, kde provedl 10 přidání a 5 odebrání
  1. 10 5
      app/Services/BetService.php

+ 10 - 5
app/Services/BetService.php

@@ -831,7 +831,8 @@ class BetService extends BaseService
                     $openList[$v['member_id']]['is_send'] = true;
 
                 }
-            } else {
+            } //
+            else {
                 Rebate::updateProfit([
                     'member_id' => $v['member_id'],
                     'profit' => ($v['amount'] * -1),
@@ -842,11 +843,12 @@ class BetService extends BaseService
                 }
 
                 $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($v['keywords'], self::$OTHER_BET_1)) {
+                    if (in_array($v['keywords'], self::$OTHER_BET_2)) {
                         if ($sum < 10000) {
                             $odds = 1.5;
                         } else {
@@ -854,9 +856,12 @@ class BetService extends BaseService
                         }
                     }
 
-                    if (in_array($v['keywords'], self::$OTHER_BET_2)) {
-                        $odds = 1;
-                    }
+
+
+
+//                    if (in_array($v['keywords'], self::$OTHER_BET_2)) {
+//                        $odds = 1;
+//                    }
                     $profit = bcmul($amount, $odds, 2); // 保留两位小数
 
                     if ($profit > 1000000) {