first()->val; if ($pc28_switch == null) $pc28_switch = $val; if ($pc28_switch != $val) { static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]); $lang = App::getLocale(); $group_language = static::where('field', 'group_language')->first()->val; App::setLocale($group_language); $groupText = "------" . lang("已切换为极速PC28") . "------"; if ($pc28_switch == 0) $groupText = "-----" . lang("已切换为加拿大PC28") . "------"; App::setLocale($lang); ConfigService::asyncBettingGroupNotice($groupText, isTop: true); // 异步群通知 } } }