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

+ 10 - 5
datainf/logic/HttpServerOnlySet.php

@@ -225,18 +225,21 @@ class HttpServerOnlySet
         }
         }
 
 
         $bet_type = $this->GP('bettype');
         $bet_type = $this->GP('bettype');
-        $nowArray = $this->PDatas['settlement_middle_detail_array'][$bet_type];
-
         $ids = [];
         $ids = [];
         $userMonsys = [];
         $userMonsys = [];
+
+        /*
+         $nowArray = $this->PDatas['settlement_middle_detail_array'][$bet_type];
+
         foreach ($nowArray as $order => $val) {
         foreach ($nowArray as $order => $val) {
             $money = abs(floatval($val->money));
             $money = abs(floatval($val->money));
             if (100 * $money > 1) {
             if (100 * $money > 1) {
-                $acc = $val->account_identity;
-                $userMonsys[$acc] = isset($userMonsys[$acc]) ? $userMonsys[$acc] + $money : $money;
-                $ids[] = $order;
+                //$acc = $val->account_identity;
+                //$userMonsys[$acc] = isset($userMonsys[$acc]) ? $userMonsys[$acc] + $money : $money;
+                //$ids[] = $order;
             }
             }
         }
         }
+        */
 
 
         //先前赢过钱的得先扣回来,写流水,再重新计算,
         //先前赢过钱的得先扣回来,写流水,再重新计算,
         $money_time = date("Y-m-d H:i:s");
         $money_time = date("Y-m-d H:i:s");
@@ -252,6 +255,8 @@ class HttpServerOnlySet
                 if ($returnMoney == 0) {
                 if ($returnMoney == 0) {
                     continue;
                     continue;
                 }
                 }
+                $userMonsys[$account_identity] = isset($userMonsys[$account_identity]) ? $userMonsys[$account_identity] + $ttttobj['cha'] : $ttttobj['cha'];
+                $ids[] = $tmp_orderid;
 
 
                 $info_identity = uuid();
                 $info_identity = uuid();
                 $trade_desc = '重结算[撤销之前]';
                 $trade_desc = '重结算[撤销之前]';