Ken 1 hari lalu
induk
melakukan
2f76a14afa
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      app/Models/Config.php

+ 1 - 3
app/Models/Config.php

@@ -21,10 +21,8 @@ class Config extends BaseModel
 
     public static function setPc28Switch()
     {
-
-        $pc28_switch = Cache::get('pc28_switch', null);
+        $pc28_switch = Cache::get('pc28_switch');
         if ($pc28_switch == null) $pc28_switch = static::where('field', 'pc28_switch')->first()->val;
         static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
-
     }
 }