|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
+use App\Services\ConfigService;
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
class Config extends BaseModel
|
|
|
@@ -24,5 +25,8 @@ class Config extends BaseModel
|
|
|
$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]);
|
|
|
+ $groupText = "已切换为极速PC28";
|
|
|
+ if ($pc28_switch == 0) $groupText = "已切换为加拿大PC28";
|
|
|
+ ConfigService::asyncBettingGroupNotice($groupText); // 异步群通知
|
|
|
}
|
|
|
}
|