vali 6 년 전
부모
커밋
74081b1408
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      datainf/logic/HttpServerOnlySet.php

+ 5 - 4
datainf/logic/HttpServerOnlySet.php

@@ -370,11 +370,11 @@ class HttpServerOnlySet
                 $returnMoney += $getReturnMoney['returnMoney'] * $v->bet_money;
             }
         } else {
-            $returnMoney  = $simplexData->money;
+            $returnMoney = $simplexData->money;
         }
 
-        $returnMoney = floatPointDigit($returnMoney - $simplexData->money * $this->fanshui);
-        //$returnMoney = sprintf("%.2f", substr(sprintf("%.3f", $returnMoney), 0, -1));
+        //$returnMoney = floatPointDigit($returnMoney - $simplexData->money * $this->fanshui);
+        $returnMoney = floatPointDigit($returnMoney);
 
         // 判断盈亏  1 赢  2 输  3 平
         $game_status = $returnMoney > $simplexData->money ? 1 : ($returnMoney == $simplexData->money ? 3 : 2);
@@ -481,7 +481,8 @@ class HttpServerOnlySet
         } else {
             $money_s = $simplexData->money;
         }
-        $money = floatPointDigit($money_s - $simplexData->money * $this->fanshui);
+        //$money = floatPointDigit($money_s - $simplexData->money * $this->fanshui);
+        $money = floatPointDigit($money_s);
 
         $this->PushSqlToArray(" update money_buy_str  set settle_status=2 , game_status=1 , settlement_time='$newTime' , gain_money=$money  where order_id = '$order_id'");
         $this->WriteOrAddSettlement($game_code, $match_id, $bet_type, $order_id, $account_identity, $money);