vali 6 年之前
父節點
當前提交
6c4026dfee
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10 3
      datainf/logic/HttpServerOnlySet.php

+ 10 - 3
datainf/logic/HttpServerOnlySet.php

@@ -231,6 +231,10 @@ class HttpServerOnlySet
         $moneys_this = $this->CountDetailsTounSet($order_ids);
         foreach ($moneys_this as $tmp_orderid => $ttttobj) {
             $now_order = $this->PDatas['Money_buy_Orders_Array'][$tmp_orderid];
+            if ($now_order->status != 1) {
+                //只处理状态为1的数据
+                continue;
+            }
             if ($ttttobj['cha'] !== 0) {
                 $order_id = $now_order->order_id;
                 $account_identity = $now_order->account_identity;
@@ -438,7 +442,9 @@ class HttpServerOnlySet
                 $returnMoney += $getReturnMoney['returnMoney'] * $v->bet_money;
             }
         } else {
-            $returnMoney = $simplexData->money;
+            //$returnMoney = $simplexData->money;
+            //$returnMoney = 0;
+            return;
         }
 
         //$returnMoney = floatPointDigit($returnMoney - $simplexData->money * $this->fanshui);
@@ -547,8 +553,9 @@ class HttpServerOnlySet
             $lasPeilv = $settlementBase->stringComputing([$in_array, $chuanNum]);
             $money_s = floatPointDigit($simplexData->money * $lasPeilv);
         } else {
-            $money_s = $simplexData->money;
-            $money_s = floatPointDigit($money_s - $simplexData->money * $this->fanshui);
+            // $money_s = $simplexData->money;
+            //$money_s = floatPointDigit($money_s - $simplexData->money * $this->fanshui);
+            return;
         }
         //$money = floatPointDigit($money_s - $simplexData->money * $this->fanshui);
         $money = floatPointDigit($money_s);