|
@@ -26,7 +26,7 @@ class Config extends BaseModel
|
|
|
$pc28_switch = Cache::get('pc28_switch');
|
|
$pc28_switch = Cache::get('pc28_switch');
|
|
|
$val = static::where('field', 'pc28_switch')->first()->val;
|
|
$val = static::where('field', 'pc28_switch')->first()->val;
|
|
|
if ($pc28_switch == null) $pc28_switch = $val;
|
|
if ($pc28_switch == null) $pc28_switch = $val;
|
|
|
- if ($pc28_switch != $val) {
|
|
|
|
|
|
|
+ if ($pc28_switch !== $val) {
|
|
|
static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
|
|
static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
|
|
|
$lang = App::getLocale();
|
|
$lang = App::getLocale();
|
|
|
$group_language = static::where('field', 'group_language')->first()->val;
|
|
$group_language = static::where('field', 'group_language')->first()->val;
|