vali 6 жил өмнө
parent
commit
da8d5064b4

+ 2 - 2
app/Logic/WinfailLogic.php

@@ -215,7 +215,7 @@ class WinfailLogic
         $AdapterObj = $this->getAdapterObj($game_code);
         $RefClass = new  \ReflectionClass($AdapterObj);
 
-        $result = json_decode($orderInfo->single_result, true);
+        $result = [json_decode($orderInfo->single_result)];
         $winorfalsedef = ['result' => 2, 'matchResult' => 'noRuleOrError'];
 
         foreach ($matchArray as $matchModel) {
@@ -233,7 +233,7 @@ class WinfailLogic
             } catch (\Exception $e) {
                 echo 'excetption: ' . print_r([$order_id, $e->getMessage(), $e->getFile(), $e->getLine()], true) . "\n";
             }
-          
+
             if (!isset($winorfalse['result']) || !isset($winorfalse['matchResult']) || !in_array($winorfalse['result'], [-1, 1, 2, 3, 4])) {
                 $winorfalse = $winorfalsedef;
             }