vali 6 gadi atpakaļ
vecāks
revīzija
f5ff202d94
1 mainītis faili ar 3 papildinājumiem un 6 dzēšanām
  1. 3 6
      datainf/logic/HttpServerOnlySet.php

+ 3 - 6
datainf/logic/HttpServerOnlySet.php

@@ -335,8 +335,6 @@ class HttpServerOnlySet
         $account = $task['account'];
         $money_prize = $task['money_prize'];
 
-        print_r(['debug', $task]);
-
         foreach ($matchDatas as $val) {
             if (!in_array($val->result, [-1, 1, 2, 3, 4])) {
                 throw  new  \Exception('match比赛结果异常或还没有输赢结果->' . $val->id, 104);
@@ -360,16 +358,12 @@ class HttpServerOnlySet
             $oddsResult[0]['odds'] = $v->odds;
             $getReturnMoney = $settlementBase->stringOdds($oddsResult);
 
-            $pv = 0;
             if ($v->result == 2) {
                 //返水钱扣掉
                 $pv = $this->gethuishuilv();
                 $getReturnMoney['returnMoney'] = 1 - $pv;
             }
             $returnMoney += $getReturnMoney['returnMoney'] * $v->bet_money;
-
-            print_r(['debug', 'getReturnMoney' => $getReturnMoney, 'pv' => $pv, 'bet_money' => $v->bet_money]);
-
         }
 
         $returnMoney = sprintf("%.2f", substr(sprintf("%.3f", $returnMoney), 0, -1));
@@ -514,6 +508,9 @@ class HttpServerOnlySet
         if (!isset($this->PDatas['account_mash'][$buy_identity])) {
             $this->PDatas['account_mash'][$buy_identity] = $this->PDatas['account_indentity_map_array'][$buy_identity]->cash;
         }
+        print_r(['debug2', $this->PDatas['account_mash'][$buy_identity], $this->PDatas['account_mash'][$buy_identity]]);
+
+
         $this->PDatas['account_mash'][$buy_identity] = $this->PDatas['account_mash'][$buy_identity] + $returnMoney;
         $user_money_cash = $this->PDatas['account_mash'][$buy_identity];