|
|
@@ -3,6 +3,7 @@
|
|
|
namespace App\Models;
|
|
|
|
|
|
use App\Services\ConfigService;
|
|
|
+use Illuminate\Support\Facades\App;
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
class Config extends BaseModel
|
|
|
@@ -27,9 +28,13 @@ class Config extends BaseModel
|
|
|
if ($pc28_switch == null) $pc28_switch = $val;
|
|
|
if ($pc28_switch != $val) {
|
|
|
static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
|
|
|
- $groupText = "------已切换为极速PC28------";
|
|
|
- if ($pc28_switch == 0) $groupText = "-----已切换为加拿大PC28------";
|
|
|
- ConfigService::asyncBettingGroupNotice($groupText,isTop:true); // 异步群通知
|
|
|
+ $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); // 异步群通知
|
|
|
}
|
|
|
}
|
|
|
}
|