|
|
@@ -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]);
|
|
|
-
|
|
|
}
|
|
|
}
|