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

+ 4 - 4
app/Services/BetService.php

@@ -585,8 +585,8 @@ class BetService extends BaseService
 
             if (in_array($v['keywords'], $awards)) {
                 $profit = $v['amount'] * $v['odds'];
-                $amount = (float)$v['amount'];
-                $odds = (float)$v['odds'];
+                $amount = $v['amount'];
+                $odds = $v['odds'];
                 $profit = bcmul($amount, $odds, 2); // 保留两位小数
                 if ($profit > 880000) {
                     $profit = 880000; // 单注最高奖金880000
@@ -646,8 +646,8 @@ class BetService extends BaseService
             // $lastStr = self::getLastChar($v['first_name'], 1);
             $lastStr = self::hideMiddleDigits($v['member_id'], 4);
             if (in_array($v['keywords'], $awards)) {
-                $amount = (float)$v['amount'];
-                $odds = (float)$v['odds'];
+                $amount = $v['amount'];
+                $odds = $v['odds'];
                 $profit = bcmul($amount, $odds, 2); // 保留两位小数
                 if ($profit > 880000) {
                     $profit = 880000; // 单注最高奖金880000