Ken 1 mēnesi atpakaļ
vecāks
revīzija
314ca77f66
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/Services/FixtureService.php

+ 2 - 2
app/Services/FixtureService.php

@@ -21,7 +21,7 @@ static function odds(int|string $id)
     {
         $key = "odds_{$id}";
         $odds = Cache::get($key);
-//        if ($odds) return json_decode($odds, true);
+        if ($odds) return json_decode($odds, true);
         $res = Client::odds(['fixture' => $id]);
         if (count($res['response']) <= 0) return [];
         $res = $res['response'][0];
@@ -39,7 +39,7 @@ static function oddsLive($id)
     {
         $key = "odds_live_{$id}";
         $odds = Cache::get($key);
-//        if ($odds) return json_decode($odds, true);
+        if ($odds) return json_decode($odds, true);
         $res = Client::oddsLive(['fixture' => $id]);
         if (count($res['response']) <= 0) return [];
         $res = $res['response'][0];