vali 6 年之前
父节点
当前提交
dc8b6c6ed8
共有 1 个文件被更改,包括 19 次插入13 次删除
  1. 19 13
      datainf/logic/HttpServerOnlySet.php

+ 19 - 13
datainf/logic/HttpServerOnlySet.php

@@ -352,21 +352,27 @@ class HttpServerOnlySet
 
         $returnMoney = 0;
         $oddsResult = [];
-        foreach ($matchDatas as $k => $v) {
-            if ($v->result == -1) {
-                continue;
-            }
-            $oddsResult[0]['winOrLose'] = $v->result;
-            $oddsResult[0]['odds'] = $v->odds;
-            $getReturnMoney = $settlementBase->stringOdds($oddsResult);
-
-            if ($v->result == 2) {
-                //返水钱扣掉
-                $pv = $this->gethuishuilv();
-                $getReturnMoney['returnMoney'] = 1 - $pv;
+
+        if ($simplexData->status == 1) {
+            foreach ($matchDatas as $k => $v) {
+                if ($v->result == -1) {
+                    continue;
+                }
+                $oddsResult[0]['winOrLose'] = $v->result;
+                $oddsResult[0]['odds'] = $v->odds;
+                $getReturnMoney = $settlementBase->stringOdds($oddsResult);
+
+                if ($v->result == 2) {
+                    //返水钱扣掉
+                    $pv = $this->gethuishuilv();
+                    $getReturnMoney['returnMoney'] = 1 - $pv;
+                }
+                $returnMoney += $getReturnMoney['returnMoney'] * $v->bet_money;
             }
-            $returnMoney += $getReturnMoney['returnMoney'] * $v->bet_money;
+        } else {
+            $returnMoney  = $simplexData->money;
         }
+
         $returnMoney = floatPointDigit($returnMoney - $simplexData->money * $this->fanshui);
         //$returnMoney = sprintf("%.2f", substr(sprintf("%.3f", $returnMoney), 0, -1));