vali 6 years ago
parent
commit
6f7b02d238
1 changed files with 4 additions and 3 deletions
  1. 4 3
      app/Logic/WinfailLogic.php

+ 4 - 3
app/Logic/WinfailLogic.php

@@ -332,9 +332,6 @@ class WinfailLogic
         $match_id = $orderInfo->match_id;
         $order_id = $orderInfo->order_id;
 
-        $AdapterObj = $this->getAdapterObj($game_code);
-        $RefClass = new  \ReflectionClass($AdapterObj);
-
         $winorfalsedef = ['result' => 2, 'matchResult' => 'noRuleOrError'];
         foreach ($matchArray as $matchModel) {
             if ($bet_type == 2) {
@@ -347,6 +344,10 @@ class WinfailLogic
                 }
             }
 
+            $AdapterObj = $this->getAdapterObj($game_code);
+            $RefClass = new  \ReflectionClass($AdapterObj);
+
+
             $fun1 = $matchModel->odds_code;
             $fun2 = $matchModel->p_code;