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