Ken 1 месяц назад
Родитель
Сommit
8f3e235bb6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Services/FixtureService.php

+ 2 - 2
app/Services/FixtureService.php

@@ -14,7 +14,7 @@ class FixtureService extends BaseService
     static function odds($id)
     {
         $key = "odds_{$id}";
-        $odds = Cache::get($key, null);
+        $odds = Cache::get($key);
         if ($odds) return json_decode($odds, true);
         $res = Client::odds(['fixture' => $id]);
         if (count($res['response']) <= 0) return [];
@@ -30,7 +30,7 @@ static function odds($id)
     static function oddsLive($id)
     {
         $key = "odds_live_{$id}";
-        $odds = Cache::get($key, null);
+        $odds = Cache::get($key);
         if ($odds) return json_decode($odds, true);
         $res = Client::oddsLive(['fixture' => $id]);
         if (count($res['response']) <= 0) return [];